svlad

Check-in [e2a2eb0dc2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added an example of using plotting tool together with jo.geometry .
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e2a2eb0dc2573b4c06741789f3a49877bf9ad757
User & Date: severak 2012-04-22 00:33:50
Context
2012-05-05
16:30
Logic separated from presentation. check-in: f83fb14078 user: severak tags: trunk
2012-04-22
00:33
Added an example of using plotting tool together with jo.geometry . check-in: e2a2eb0dc2 user: severak tags: trunk
00:22
Added simply plotting tool. check-in: d5c1e0dafa user: severak tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added ring.lua.



































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "math"
require "jo.geometry"

col=jo.geometry.color:clone()

for u=0,360,0.2 do
  rad=math.rad(u)
  for r=1,255 do
    x=math.cos(rad)*r*0.8
    y=math.sin(rad)*r*0.8
    col:toRGB(rad,1,255-r)
    color(col.r,col.g,col.b)
    point(x+320,y+240)
  end    
end

pause()