Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Paint clone in codea

edited January 2012 in Code Sharing Posts: 2

Here's a really simple paint clone:
http://pastebin.com/LRQSNtwA
I've just started coding in lua.Took me about five minutes to make this.
If you have any way of improving it,please reply.
-Ajay

Tagged:

Comments

  • SimeonSimeon Admin Mod
    Posts: 5,387

    Fantastic! Great use of RETAINED backing mode :)

    A tiny amount of code as well. Nice work.

    Erase seems a bit buggy though - if you set a colour and change to erase it seems to stick on that colour.

  • Posts: 447

    Great! I like small bits of code that do something useful.

    For the eraser you need to set fill() and stroke()

  • Posts: 2,820

    Haha. Cool. I'm laughing because when I first got Codea, I programmed almost the exact same code, and then added brush size, color, and opacity. Very nice. This is a great example of how easy Codea makes it to learn Lua! Thank you TLL!

  • Posts: 40

    It's great

  • Amazing, how New programmers grow into programming.

    Nice work! Didn't know of "CurrentTouch.prevX" before...

  • Posts: 29

    Thanks!

Sign In or Register to comment.