跳转至

Particle Appearance Tinting Component For 1.10.0

文档版本:1.21.0.24

Color fields are special, they can be either an RGB, or a #RRGGBB field (or RGBA or AARRGGBB). If RGB(A), the channels are from 0 to 1. If the string #AARRGGBB, then the values are hex from 00 to ff.

架构

particle_appearance_tinting:
{
  array "color" : opt
  {
    0 "<any array element>"
  }
  string "color" : opt
  object "color" : opt
  {
    array "gradient" : opt
    {
      string "<any array element>" : opt
    }
    object "gradient" : opt
    {
      string "(^[\-0-9]+$|^[\-0-9]+\.[\-0-9]+$)" : opt
    }
    array "gradient" : opt
    {
      array "<any array element>" : opt
      {
        number "<any array element>" : opt
        string "<any array element>" : opt
      }
    }
    0 "interpolant"
  }
}
colorarray
Direct color field.
color
<any array element>0
0:
string
0:
number
colorstring
Direct color field.
colorobject
Interpolation based color.
color
gradientarray
An array of colors.
gradient
<any array element>string
Color.
gradientobject
An object of colors.
gradient
(^[\-0-9]+$|^[\-0-9]+\.[\-0-9]+$)string
Color.
gradientarray
An array of colors.
gradient
<any array element>array
<any array element>
<any array element>number
Color.
<any array element>string
interpolant0
UNDOCUMENTED: interpolant.