alex-liu30 / terrainproject

0 stars 1 forks source link

Step 2, define some colors #3

Open mrjloswald-avenues opened 4 weeks ago

mrjloswald-avenues commented 4 weeks ago
// you don't have to specify alpha values because we give them a default value in the struct definition
let floodColor = PixelData(r:0,g:49,b:83)

let colorList:[PixelData] = [
  PixelData(r: 0, g: 102, b: 0), 
  PixelData(r: 154, g: 205, b: 50),
  PixelData(r: 251, g: 236, b: 93),
  PixelData(r: 212, g: 175, b: 55),
  PixelData(r: 166, g: 60, b: 20),
]