mirror of
https://github.com/irmen/prog8.git
synced 2024-11-29 17:50:35 +00:00
25 lines
341 B
Lua
25 lines
341 B
Lua
%option enable_floats
|
|
|
|
~ main {
|
|
|
|
sub start() -> () {
|
|
|
|
const word yoffset=100
|
|
const float height=20.2
|
|
word pixely
|
|
float yy
|
|
float v
|
|
|
|
yy = 11.0-(v-22.0)
|
|
yy = 11.0-(22.0-v)
|
|
yy = (v-22.0)-11.0
|
|
yy = (22.0-v)-11.0
|
|
|
|
yy = 11.0/(v/22.0)
|
|
yy = 11.0/(22.0/v)
|
|
yy = (v/22.0)/11.0
|
|
yy = (22.0/v)/11.0
|
|
|
|
}
|
|
}
|