Untitled

mail@pastecode.io avatar
unknown
json
2 years ago
1.6 kB
3
Indexable
{
	"event_type": "SET_BRUSH_COLOR",
	# Either simple color
	"color": { "r": 255, "g": 0, "b": 0 },
	# or multiple colors
	"multicolor": {
		"seed": 1234,
		"scale": {
			# Either direct values
			"x": 0.1,
			"y": 0.2,
			# Or a range for random values
			"x_range": {"min": 0.1, "max": 1.6},
			"y_range": {"min": 0.3, "max": 0.8}
		},
		"offset": {
			# Either direct values
			"x": 42,
			"y": -152,
			# Or a range for random values
			"x_range": {"min": -380.5, "max": 10800.0},
			"y_range": {"min": 200, "max": 400.5}
		},
		"colors": [
			# list containing colors to be applied to multicolor texture, each        # color can also have a scale and offset specified, if not specified    # "multi_color_scale" and "multi_color_offset" are used, in case they     # are also not set then random generator is used
			{
				"color": { "r": 255, "g": 0, "b": 0 },
				"scale": {
					# Either direct values
					"x": 0.1,
					"y": 0.2,
					# Or a range for random values
					"x_range": {"min": 0.1, "max": 1.6},
					"y_range": {"min": 0.3, "max": 0.8}
				},
				"offset": {
					# Either direct values
					"x": 42,
					"y": -152,
					# Or a range for random values
					"x_range": {"min": -380.5, "max": 10800.0},
					"y_range": {"min": 200, "max": 400.5}
				}
			},
			{
				"color": { "r": 0, "g": 255, "b": 0 },
				"scale": {
					"x": 0.05,
					"y": 0.05
				}
			},
			{
				"color": { "r": 0, "g": 0, "b": 255 },
				"offset": {
					"x": -10,
					"y": 320
				}
			},
			{
				"color": { "r": 255, "g": 0, "b": 255 }
			}
		 
		]
	}
}