LuaCrumbs is currently in ALPHA - some work on the core still to be made before opening BETA. Status and downloads at: http://www.nodepond.com/luacrumbs
The e-mail service is up and running. People can register now! (Notice: Sometimes the mail-delivery is delayed for some minutes..)
Share an example!
  • This thread is to share code-examples and projects.
  • This example is making a nice computer-generated pattern with very few lines of code. You can see a printout at this thread: http://www.luacrumbs.org/forum/discussion/comment/11#Comment_11
    local lc = require ("luacrumbs")
    require("Pde")
    require("Html3D")
    --require("Hpgl")
     
    --print("LuaCrumbs Version: "..tostring(lc.getVersion()))
     
    local scale = 100
     
    local pde = Pde.new()
     
    lc.addFormat(pde)
    lc.addFormat(Html3D.new())
    --lc.addFormat(Hpgl.new())
     
    lc.init("swarm-forms")
     
    function drawSwarmLine(_xpos)
    lc.pencilUp()
    lc.moveTo(_xpos,-1.6*scale)
     
    lc.setRotation(180)
    lc.pencilDown()
     
    while lc.getY() < 1.6*scale
    do
    lc.moveForward(0.04*scale)
    if (lc.getX() < 0) then
    lc.addRotation(-1.1)
    else
    lc.addRotation(2.18)
    end
    end
    end
     
    for i=-150, 150, 4 do
    drawSwarmLine(i)
    end
     
    lc.pencilUp()
     
    lc.close()
    Bildschirmfoto 2012-12-09 um 17.47.30.png
    805 x 575 - 107K

Howdy, Stranger!

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

In this Discussion

Tagged