core.plugins.tracking.cl_init
Trackers Client.
- Clientdraw.Arc(cx, cy, radius, thickness, startang, endang, roughness, color)Source ☍
-
Draw an arc on screen.
Parameters
- cxanyCentre X
- cyanyCentre Y
- radiusanyRadius of the arc.
- thicknessanyThickness of the arc line.
- startanganyThe starting angle of the arc.
- endanganyThe ending angle of the arc.
- roughnessanyMeasure of how many "points" are created for the arc.
- coloranyThe color of the arc. Credits https://facepunch.com/showthread.php?t=1438016&p=46533574&viewfull=1#post46533574
- Clientsurface.DrawArc(arc)Source ☍
-
Draw an pre-generated arc. Draw a pre-made arc.
Parameters
- arcanyArcData from surface.PrecacheArc
- Clientsurface.DrawTexturedRectRotatedPoint(x, y, w, h, rot, x0, y0)Source ☍
-
Draw a rotated rectangle, rotated around non-origin point.
Parameters
- xanyThe x centre of the rectangle.
- yanyThe y centre of the rectangle.
- wanyThe width of the rectangle.
- hanyThe height of the shape
- rotanyRotation angle (degrees)
- x0anyThe rotation x origin.
- y0anyThe rotation y origin.
- Clientsurface.PrecacheArc(cx, cy, radius, thickness, startang, endang, roughness) → tableSource ☍
-
Create a list of points to create an arc from.
Parameters
- cxanyCentre X
- cyanyCentre Y
- radiusanyRadius of the arc.
- thicknessanyThickness of the arc line.
- startanganyThe starting angle of the arc.
- endanganyThe ending angle of the arc.
- roughnessanyMeasure of how many "points" are created for the arc.
Returns
- table