Skip to content

Doodle Draw

This is a basic implementation of a program to draw doodles, using random colors.

Various doodle lines of different colors are drawin in the window

require("L5")

function setup()
  size(800,600)
  windowTitle("Drawing software")

  background("midnightblue")
  strokeWeight(5)

  describe("A drawing program in a midnight blue window producing random colors each time you draw.")
end

function mouseDragged()
  line(mouseX, mouseY, pmouseX, pmouseY)
end

function mousePressed()
  stroke(random(255),random(255),random(255))
end

  • 10print variations - An implementation of the classic maze-drawing algorithm
  • Basic Pong - A simple program demonstrating a basic implementation of pong with enemy AI player
  • Copy Image Data - Paint from an image file onto the canvas.