lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thank you both very much!

---
Technology Integrator
Oceanside High School (East & West)
Owls Head Central School
Gilford Butler School
emckay@rsu13.org


From: <lua-l-bounces@lists.lua.org<mailto:lua-l-bounces@lists.lua.org>> on behalf of Jonne Ransijn <yoyoyonny@gmail.com<mailto:yoyoyonny@gmail.com>>
Reply-To: Lua mailing list <lua-l@lists.lua.org<mailto:lua-l@lists.lua.org>>
Date: Friday, May 20, 2016 at 9:27 AM
To: Lua mailing list <lua-l@lists.lua.org<mailto:lua-l@lists.lua.org>>
Subject: Re: Novice Question


Code rewritten for Codea (Thanks, Duncan!)

local bgcolor = color(255, 255, 255) -- White background color

-- Other local variables (avoid globals in setup())

function draw()
    background(bgcolor) -- Clear the screen
    ...
end

I have to agree with Duncan that most people on this list probably can't help you with extern libraries like Codea, but also remember that the most important skill for a programmer is to be able to use Google :)

Most of the functions you need can probably be found here: http://twolivesleft.com/Codea/Reference/

- Jonne