fromColor function

Vector3 fromColor(
  1. Color color
)

Convert Color to Vector3

Implementation

Vector3 fromColor(Color color) {
  return Vector3(color.red / 255, color.green / 255, color.blue / 255);
}