by simon baird

Tuesday, February 16, 2010

pdf stick men

it's been a while since i've done any programming for fun...
i will post some nice ruby if i finish it
doesn't look like much but these are marionette style stick figures
imagine this type of thing:

class StickMan < JointedFigure
  ...
end

class RunningMan < StickMan
  ...
end

$pdf = MyPDF.new
m = RunningMan.new
m.draw(100,200)
m.draw(400,200,45) # running up a steep hill :)
$pdf.save

and finally... stick man karma sutra (just kidding)

confession: i googled trigonometry...

1 comment:

Anonymous said...

You might need some color coding... or line patterns, I can't tell which part of your stick man is which :D