how to draw 2D shapes

BlitzMax Forums/BlitzMax Programming/how to draw 2D shapes

B(Posted 2008) [#1]
i have searched the forums to the best of my abilities and I cannot find a thread that
talks about drawing 2D shapes.

How do you draw say a rectangle

example:

rectangle x1,y1,x2,y2

to make something like this:
==========
=..................=
=..................=
==========

ignore the periods

or a circle

example:

circle x,y,radius


are there commands like this?

i could make a function of my own, however if there are already commands like
this it would make it alot easier

thanks!

B


GfK(Posted 2008) [#2]
DrawRect()
DrawOval()


rs22(Posted 2008) [#3]
DrawRect, DrawOval, DrawLine, etc? They're in the Max2D module, under Graphics.


B(Posted 2008) [#4]
oh wow thanks!

i was looking under the index and i could not find anything because there are so many
commands there.

thanks guys sorry to bother you with such a simple question.


Volker(Posted 2008) [#5]
Hi B,

perhaps its helpfull for you to use this:
Helpfile in windows chm format

I prefer it. Search is faster and easier.


Grey Alien(Posted 2008) [#6]
Probably best to post topics like this in the BMax beginner thread.