-
-
Notifications
You must be signed in to change notification settings - Fork 33
Draw3D Class
wagyourtail edited this page Aug 5, 2020
·
6 revisions
The Draw3D Class, methods are as follows:
Example: new Draw3D()
Initialize, to call this it is easiest to refer to Hud.
Example: overlay.addBox(x1, y1, z1, x2, y2, z2, color, alpha, fillColor, fillAlpha, fillBool)
- alpha fields were added in version 1.1.8+
- alpha fields are optional and can just be in the
argbHex
field. - if one alpha field is present both need to be.
- alpha fields are optional and can just be in the
returns the box object.
Example: overlay.removeBox(box)
removes a box element from the screen.
Example: overlay.getBoxes()
returns an ArrayList
of box elements.
Example: overlay.addLine(x1, y1, z1, x2, y2, z2, color, alpha)
- alpha was added in version 1.1.8+
- alpha is optional and can just be in the
argbHex
field.
- alpha is optional and can just be in the
returns the box object.
Example: overlay.removeLine(line)
removes a box element from the screen.
Example: overlay.getLines()
returns an ArrayList
of line elements.
class box {
constructor(x1, y1, z1, x2, y2, z2, color, fillColor, fill); //x,y,z are doubles. color are ints, fill is a boolean.
setPos(x1, y1, z1, x2, y2, z2);
setColor(color);
setFillColor(fillColor);
setFill(fill);
}
class box {
constructor(x1, y1, z1, x2, y2, z2, color); //x,y,z are doubles. color is int.
setPos(x1, y1, z1, x2, y2, z2);
setColor(color);
}