Jump to content

Draw a sphere: Difference between revisions

m
J: torgb better fits than tograyscale - the gray of that image is because we're only using one channel of intensity and using it for all three colors - but the conversion routine does support all three...
(added FreeBasic version, change existing version from FreeBASIC to Works with FreeBASIC)
m (J: torgb better fits than tograyscale - the gray of that image is because we're only using one channel of intensity and using it for all three colors - but the conversion routine does support all three...)
Line 1,601:
 
load 'viewmat'
togreyscaletorgb =. 256 #. [: <. 255 255 255 *"1 0 ]
'rgb' viewmat togreyscaletorgb luminosity</lang>
 
=={{header|Java}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.