Table of Contents ▸ List of Commands ▸ Image Drawing ▸ ball | ◀ axes | chessboard ▶ |
ball
Arguments:
- _size>0,_R,_G,_B,_ambient>=0,_diffuse>=0,_specular>=0,_shininess>=0,_light_x,_light_y,_light_z
Description:
Input a 2D RGBA colored ball sprite, rendered using the Phong illumination model.Default values:
size=64, R=200, G=R, B=R, ambient=0.25, diffuse=1, specular=1, shininess=20, light_x=1.5, light_y=-1.5 and light_z=1.
Example of use:
repeat 9 { ball {int(1.5^($>+4))},${-rgb} } append_tiles 3,3
