MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / lineStyle

Method lineStyle

src/scripting/api/Display/Graphics.ts:110–121  ·  view source on GitHub ↗

* Set line style * @param {number} thickness - line thickness * @param {number} color - line color (default 0) * @param {number} alpha - alpha (default 1) * @param {boolean} hinting - pixel hinting (default false) * @param {string} scale - scale mode (default "normal")

(thickness:number,
      color:number = 0,
      alpha:number = 1.0,
      hinting:boolean = false,
      scale:string = 'normal',
      caps:string = 'none',
      joints:string = 'round',
      miter:number = 3)

Source from the content-addressed store, hash-verified

108 * @param {number} miterlim - miter limit (default 3)
109 */
110 public lineStyle(thickness:number,
111 color:number = 0,
112 alpha:number = 1.0,
113 hinting:boolean = false,
114 scale:string = 'normal',
115 caps:string = 'none',
116 joints:string = 'round',
117 miter:number = 3):void {
118
119 this._lineWidth = thickness;
120 this._callDrawMethod('lineStyle', [thickness, color, alpha, caps, joints, miter]);
121 }
122
123 /**
124 * Draw a rectangle

Callers

nothing calls this directly

Calls 1

_callDrawMethodMethod · 0.95

Tested by

no test coverage detected