A method of producing a textile fabric comprising a functional code pattern embedded therein, the method comprising: calculating conversion factors for a barcode comprising bars to convert the bars to numbers of threads or yarns for the functional code pattern embedded within the textile product; programming a textile process machine , wherein the programming controls bar width, bar spacing, or a combination thereof of the functional code pattern ; and simultaneously incorporating the functional code pattern into the textile fabric and interlacing a plurality of textile yarns to form the textile fabric , wherein the functional code pattern is visible to the human eye; the method being characterised by comprising: calculating mathematical ratios between dimensions of the barcode and dimensions for the functional code pattern embedded within the textile product , wherein the functional code pattern is enlarged compared to the barcode; and adjusting a number of threads or yarns for each bar of the enlarged functional code pattern for the textile product; wherein the functional code pattern spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern is programmable to allow a user of the textile fabric after the fabric is produced to associate with said barcode a personalized response when the functional code pattern is read by an electronic code reading device. calculating conversion factors for a barcode comprising bars to convert the bars to numbers of threads or yarns for the functional code pattern embedded within the textile product; programming a textile process machine , wherein the programming controls bar width, bar spacing, or a combination thereof of the functional code pattern ; and simultaneously incorporating the functional code pattern into the textile fabric and interlacing a plurality of textile yarns to form the textile fabric , wherein the functional code pattern is visible to the human eye; the method being characterised by comprising: calculating mathematical ratios between dimensions of the barcode and dimensions for the functional code pattern embedded within the textile product , wherein the functional code pattern is enlarged compared to the barcode; and adjusting a number of threads or yarns for each bar of the enlarged functional code pattern for the textile product; wherein the functional code pattern spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern is programmable to allow a user of the textile fabric after the fabric is produced to associate with said barcode a personalized response when the functional code pattern is read by an electronic code reading device. calculating mathematical ratios between dimensions of the barcode and dimensions for the functional code pattern embedded within the textile product , wherein the functional code pattern is enlarged compared to the barcode; and adjusting a number of threads or yarns for each bar of the enlarged functional code pattern for the textile product; wherein the functional code pattern spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern is programmable to allow a user of the textile fabric after the fabric is produced to associate with said barcode a personalized response when the functional code pattern is read by an electronic code reading device. <EOS>