Sp3dMaterial constructor

Sp3dMaterial(
  1. Color bg,
  2. bool isFill,
  3. double strokeWidth,
  4. Color strokeColor, {
  5. int? imageIndex,
  6. List<Offset>? textureCoordinates,
  7. String? name,
  8. Map<String, dynamic>? option,
})

Constructor

  • bg : Background color
  • isFill : If true, fill by bg color.
  • strokeWidth : Stroke width.
  • strokeColor : Stroke color.
  • imageIndex : Invalid if null. When fill is enabled and there are 4 vertex, fill with image with the clockwise order as the vertices from the upper left.
  • textureCoordinates : You can specify the part of the image that you want to cut out and use. Use by specifying the coordinate information for the image. Specify the coordinates counterclockwise with a triangle(3 vertices) or rectangle(There are two triangles. 6 vertices).
  • name : The material name.
  • option : Optional attributes that may be added for each app.

Implementation

Sp3dMaterial(this.bg, this.isFill, this.strokeWidth, this.strokeColor,
    {this.imageIndex, this.textureCoordinates, this.name, this.option});