This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
AndreWalia's profile picture

More colors!

Started by AndreWalia, 08 December 2012 - 12:00 PM
AndreWalia #1
Posted 08 December 2012 - 01:00 PM
I was thinking that there should be more colors. ALOT more. maybe we could use RGBS (Red Blue Green Shade) (I came up with the Shade my self) for example:
 term.setBackgroundColor(0,256,0,5) 
would set the color to blue with a 50% shade of black. but if you were to do
 term.setBackgroundColor(0,256,0,0) 
then it would be a pure blue 0% tint (and shade).
you can change it a little if you want. but if this is implemented i would like the concept to be fairly the same
Cloudy #2
Posted 08 December 2012 - 01:51 PM
The limited colours is an intended design decision.
Cranium #3
Posted 08 December 2012 - 01:56 PM
16 dyes in minecraft == 16 colors in ComputerCraft.
Why complicate things?
OmegaVest #4
Posted 08 December 2012 - 02:01 PM
Also, Shade is redundant. With a little experimenting, you can create any "Shaded" color with the standard 8-bit RGB system.

Hang on a sec. I've done that, actually. Yay RGBLights peripherals!


function shade(iPerc, tColor)
   iPerc = 10 - iPerc
   for i = 1, #tColor do
	  tColor[i] = tColor[i] * (iPerc/10)
   end
   return tColor
end


And with that, hopefully, [/jerk]