Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Draw-a-sphere/J/draw-a-sphere-1.j
Normal file
1
Task/Draw-a-sphere/J/draw-a-sphere-1.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
load '~system/examples/graphics/opengl/simple/sphere.ijs'
|
||||
8
Task/Draw-a-sphere/J/draw-a-sphere-2.j
Normal file
8
Task/Draw-a-sphere/J/draw-a-sphere-2.j
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
'R k ambient' =. 10 2 0.4
|
||||
light =. (% +/&.:*:) 30 30 _50
|
||||
pts =. (0&*^:(0={:))@:(,,(0>.(*:R)-+)&.*:)"0/~ i:15j200
|
||||
luminosity =. (>:ambient) %~ (ambient * * +/&.:*:"1 pts) + k^~ 0>. R%~ pts +/@:*"1 -light
|
||||
|
||||
load 'viewmat'
|
||||
torgb =. 256 #. [: <. 255 255 255 *"1 0 ]
|
||||
'rgb' viewmat torgb luminosity
|
||||
Loading…
Add table
Add a link
Reference in a new issue