MCPcopy
hub / github.com/phaserjs/phaser / IBodyRenderOptions

Interface IBodyRenderOptions

types/matter.d.ts:482–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 }
481
482 interface IBodyRenderOptions {
483
484 /**
485 * A flag that indicates if the body should be rendered.
486 *
487 * @property visible
488 * @type boolean
489 * @default true
490 */
491 visible?: boolean;
492
493 /**
494 * Sets the opacity. 1.0 is fully opaque. 0.0 is fully translucent.
495 *
496 * @property opacity
497 * @type number
498 * @default 1
499 */
500 opacity?: number;
501
502 /**
503 * An `Object` that defines the sprite properties to use when rendering, if any.
504 *
505 * @property sprite
506 * @type object
507 */
508 sprite?: IBodyRenderOptionsSprite;
509
510 /**
511 * A hex color value that defines the fill color to use when rendering the body.
512 *
513 * @property fillColor
514 * @type number
515 */
516 fillColor?: number;
517
518 /**
519 * A value that defines the fill opacity to use when rendering the body.
520 *
521 * @property fillOpacity
522 * @type number
523 */
524 fillOpacity?: number;
525
526 /**
527 * A hex color value that defines the line color to use when rendering the body.
528 *
529 * @property lineColor
530 * @type number
531 */
532 lineColor?: number;
533
534 /**
535 * A value that defines the line opacity to use when rendering the body.
536 *
537 * @property lineOpacity
538 * @type number
539 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…