[bmx] DrawLineTrapezoid() by drnmr [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:39

Previous topic - Next topic

BlitzBot

Title : DrawLineTrapezoid()
Author : drnmr
Posted : 1+ years ago

Description : Can't rotate.

Code :
Code (blitzmax) Select
Function DrawLineTrapezoid(x,y,length,height)
topleftx = length/4+x
lowerlefty = y+height
lowerrightx = x+length
lowerrighty = y+height
upperrightx = length/4*3+x
DrawLine topleftx,y,x,lowerlefty
DrawLine x,lowerlefty,lowerrightx,lowerrighty
DrawLine lowerrightx,lowerrighty,upperrightx,y
DrawLine upperrightx,y,topleftx,y
EndFunction


Comments : none...