Howdy, Stranger!

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

Use the camera.

edited November 2016 in Examples Posts: 87

In this I made a example for how to access the camera.
In this you can swap your face for a emoji!
This is one of my first projects so DONT expect the best and most efficient code

-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
    parameter.integer("WidthOfEmoji", 1, 10)
      parameter.integer("HeightOfEmoji", 1, 10)    
end
-- This function gets called once every frame
function draw()     
    -- This sets a dark background color 
   sprite(CAMERA,WIDTH/2,HEIGHT/2)
    -- This sets the line thickness
    strokeWidth(5)   
    sprite("Project:Emoji1",CurrentTouch.x, CurrentTouch.y, WIDTH*WidthOfEmoji/10, HEIGHT*HeightOfEmoji/10)
    -- Do your drawing here  
end

Comments

Sign In or Register to comment.