MartinW wrote > > Nicolai Hess wrote >> Color class>>r: r g: g b: b >> "Return a color with the given r, g, and b components in the range >> [0.0..1.0]." >> >> :-) Range is [0..1] not [0..255] > Oh, thank you, how embarassing. I correct it to: > color := Color r: 255 g: 0 b: 0 range: 255. > > Still the problem remains the same. I tested the code with Color random > and only for the post changed to Color r:g:b:.
And some colors are found to be next to „transparent“ for example color := Color r: 100 g: 0 b: 0 range: 255. which clearly has alpha 1.0. -- View this message in context: http://forum.world.st/Programming-Puzzles-Code-Golf-What-color-is-this-tp4764770p4764833.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.