To add your colors, you just need to pass an array of colors during plugin initialization. To understand how a color object should be formed, refer to the following example:

var options = {
    colors: [
      {
        name: "Black",
        value: "#000000",
        printingtypes: "Sublimation,Direct print",
        price: null
      },
      {
        name: "Beige",
        value: "#d6ab89",
        printingtypes: "Direct print",
        price: null
      },
      {
        name: "Gold",
        value: "http://localhost:8080/patterns/cork-board.png",
        printingtypes: "Sublimation",
        price: null
      }
    ]
}

var instance = new AsukaDesigner('#myId', options); // Create an instance of the main plugin class

Was this article helpful to you? Yes No

How can we help?