Log In  

Cart #33186 | 2016-12-07 | Code ▽ | Embed ▽ | No License
2

This is just a little demonstration written by my son, currently learning coordinate system at school and uploaded here for a presentation at school - nothing to see here, please move on ;)

-- koordinatenzeichner
-- von noah rottmann

-- koordinaten in einer tabelle
bild={}
bild[1]={4,4}
bild[2]={7,6}
bild[3]={4,8}
bild[4]={4,3}
bild[5]={2,3}
bild[6]={3,1}
bild[7]={7,1}
bild[8]={8,3}
bild[9]={4,3}
groesse=15

-- function zur zeichnung
-- des bildschirms
function _draw()
-- bildschirm loeschen
cls()
-- schleife von 1 bis menge
-- koordinaten -1
for i=1,#bild-1 do
-- linie von punkt i
-- bis punkt i+1
line(bild[i][1]groesse,
128-bild[i][2]
groesse,
bild[i+1][1]groesse,
128-bild[i+1][2]
groesse,
i+1)
end
end

P#33187 2016-12-07 17:21 ( Edited 2016-12-07 22:21)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 19:51:11 | 0.009s | Q:13