Standard Colors List

From SDK
Revision as of 17:09, 8 May 2024 by WikiSysop (talk | contribs) (→‎Standard Color Names and Values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Back.jpg

Swaps Color Display Names to the Code Name

    -- =======================================================]]
      function LayerColorRename(str)                         -- Swaps the displayed name for the color Variable name
       local ColorMatch = {}
       local Name = ""
        Colors.Names ={{"Brown", "Brown"}, {"Olive Green", "OliveGreen"}, {"Dark Green", "DarkGreen"}, {"Dark Teal", "DarkTeal"},
                       {"Dark Blue", "DarkBlue"}, {"Indigo", "Indigo"}, {"Gray-80%", "Gray80"}, {"Dark Red", "DarkRed"}, {"Orange", "Orange"},
                       {"Dark Yellow", "DarkYellow"}, {"Green", "Green"}, {"Teal", "Teal"}, {"Blue", "Blue"}, {"Blue Gray", "BlueGray"},
                       {"Gray-50%", "Gray50"}, {"Red", "Red"}, {"Light Orange", "LightOrange"}, {"Lime","Lime"}, {"Sea Green", "SeaGreen"},
                       {"Aqua", "Aqua"}, {"Light Blue", "LightBlue"}, {"Violet", "Violet"}, {"Gray-40%", "Gray40"}, {"Pink","Pink"},
                       {"Gold", "Gold"}, {"Yellow", "Yellow"}, {"Bright Green", "BrightGreen"}, {"Turquoise", "Turquoise"},
                       {"Sky Blue", "SkyBlue"}, {"Plum", "Plum"}, {"Gray-25%", "Gray25"}, {"Rose", "Rose"}, {"Tan", "Tan"},
                       {"Light Yellow", "LightYellow"}, {"Light Green", "LightGreen"}, {"Light Turquoise", "LightTurquoise"},
                       {"Pale Blue", "PaleBlue"}, {"Lavender", "Lavender"}, {"White", "White"}}
        for i=1, #Colors.Names, 1 do
          ColorMatch = Colors.Names[i]
          if ColorMatch[1] == str then
            return ColorMatch[2]
          end -- if end
        end -- For loop end
        return Name
      end --function end
    -- =======================================================]] 

Standard Color Names and Values

   Color Menu Name  | Code Name        |  Red   |  Green  | Blue
   ===============================================================
   -- Aqua  ------------------------------------------------------              
              local  Aqua            = "0.20000, 0.80000, 0.80000"
   -- Black  -----------------------------------------------------              
              local  Black           = "0.00000, 0.00000, 0.00000"
   -- Blue  ------------------------------------------------------              
              local  Blue            = "0.00000, 0.00000, 1.00000"
   -- Blue Gray  -------------------------------------------------              
              local  BlueGray        = "0.40000, 0.40000, 0.60000"
   -- Bright Green  ----------------------------------------------              
              local  BrightGreen     = "0.00000, 1.00000" 0.00000"
   -- Brown  -----------------------------------------------------              
              local  Brown           = "0.60000, 0.20000, 0.00000"
   -- Dark Blue  -------------------------------------------------              
              local  DarkBlue        = "0.00000, 0.00000, 0.50200"
   -- Dark Green  ------------------------------------------------              
              local  DarkGreen       = "0.00000, 0.20000, 0.00000"
   -- Dark Red  --------------------------------------------------              
              local  DarkRed         = "0.50200, 0.00000, 0.00000"
   -- Dark Teal  -------------------------------------------------              
              local  DarkTeal        = "0.00000, 0.20000, 0.40000"
   -- Dark Yellow  -----------------------------------------------              
              local  DarkYellow      = "0.50200, 0.50200, 0.00000"
   -- Gold  ------------------------------------------------------              
              local  Gold            = "1.00000, 0.80000, 0.00000"
   -- Gray-25%  --------------------------------------------------          
              local  Gray25          = "0.75400, 0.75400, 0.75400"
   -- Gray-40%  --------------------------------------------------          
              local  Gray40          = "0.60002, 0.60002, 0.60002"
   -- Gray-50%  --------------------------------------------------          
              local  Gray50          = "0.50200, 0.50200, 0.50200"
   -- Gray-80%  --------------------------------------------------          
              local  Gray80          = "0.20000, 0.20000, 0.20000"
   -- Green  -----------------------------------------------------             
              local  Green           = "0.00000, 0.50200, 0.00000"
   -- Indigo  ----------------------------------------------------            
              local  Indigo          = "0.20000, 0.20000, 0.60000"
   -- Lavender  --------------------------------------------------          
              local  Lavender        = "0.80000, 0.60000, 1.00000"
   -- Light Blue  ------------------------------------------------        
              local  LightBlue       = "0.20000, 0.40000, 1.00000"
   -- Light Green  -----------------------------------------------       
              local  LightGreen      = "0.80000, 1.00000, 0.80000"
   -- Light Orange  ----------------------------------------------      
              local  LightOrange     = "1.00000, 0.60000, 0.00000"
   -- Light Turquoise  -------------------------------------------   
              local  LightTurquoise  = "0.80000, 1.00000" 1.00000"
   -- Light Yellow  ----------------------------------------------      
              local  LightYellow     = "1.00000, 1.00000" 0.60000"
   -- Lime  ------------------------------------------------------              
              local  Lime            = "0.60000, 0.80000, 0.00000"
   -- Olive Green  -----------------------------------------------       
              local  OliveGreen      = "0.20000, 0.20000, 0.00000"
   -- Orange  ----------------------------------------------------            
              local  Orange          = "1.00000, 0.40000, 0.00000"
   -- Pale-Blue  -------------------------------------------------         
              local  PaleBlue        = "0.60000, 0.80000, 1.00000"
   -- Pink  ------------------------------------------------------              
              local  Pink            = "1.00000, 0.00000, 1.00000"
   -- Plum  ------------------------------------------------------              
              local  Plum            = "0.60000, 0.20000, 0.40000"
   -- Red  -------------------------------------------------------               
              local  Red             = "1.00000, 0.00000, 0.00000"
   -- Rose  ------------------------------------------------------              
              local  Rose            = "1.00000, 0.60000, 0.80000"
   -- Sea Green  -------------------------------------------------         
              local  SeaGreen        = "0.20000, 0.60000, 0.40000"
   -- Sky Blue  --------------------------------------------------          
              local  SkyBlue         = "0.00000, 0.80000, 1.00000"
   -- Tan  -------------------------------------------------------               
              local  Tan             = "1.00000, 0.80000, 0.60000"
   -- Teal  ------------------------------------------------------              
              local  Teal            = "0.00000, 0.50200, 0.50200"
   -- Turquoise  -------------------------------------------------         
              local  Turquoise       = "0.00000, 1.00000, 1.00000"
   -- Violet  ----------------------------------------------------            
              local  Violet          = "0.50200, 0.00000, 0.50200"
   -- White  -----------------------------------------------------             
              local  White           = "1.00000, 1.00000, 1.00000"
   -- Yellow  ----------------------------------------------------          
              local  Yellow          = "1.00000, 1.00000, 0.00000"
   ---------------------------------------------------------------
   local job       = VectricJob()
   local layer     = job.LayerManager:GetLayerWithName(MyLayerName)
                     layer:SetColor(LayerColorRename(ColorMenuName))
   ---------------------------------------------------------------


Back.jpg

References

Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 10.0, published August 21, 2019. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information