A method of producing a textile fabric comprising a functional code pattern (508, 510, 512) 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 (508, 510, 512) 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 (508, 510, 512); and simultaneously incorporating the functional code pattern (508, 510, 512) 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 (508, 510, 512) embedded within the textile product, wherein the functional code pattern (508, 510, 512) 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 (508, 510, 512) spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern (508, 510, 512) 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 (508, 510, 512) 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 (508, 510, 512); and simultaneously incorporating the functional code pattern (508, 510, 512) 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 (508, 510, 512) embedded within the textile product, wherein the functional code pattern (508, 510, 512) 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 (508, 510, 512) spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern (508, 510, 512) 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 (508, 510, 512) embedded within the textile product, wherein the functional code pattern (508, 510, 512) 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 (508, 510, 512) spans an entire width of the textile fabric over a predetermined length of the textile fabric; and wherein the functional code pattern (508, 510, 512) 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.