MCPcopy Index your code
hub / github.com/processing/processing / rgbaValue

Method rgbaValue

core/src/processing/core/PShapeOBJ.java:400–404  ·  view source on GitHub ↗
(PVector color)

Source from the content-addressed store, hash-verified

398 }
399
400 protected static int rgbaValue(PVector color) {
401 return 0xFF000000 | ((int)(color.x * 255) << 16) |
402 ((int)(color.y * 255) << 8) |
403 (int)(color.z * 255);
404 }
405
406
407 protected static int rgbaValue(PVector color, float alpha) {

Callers 1

PShapeOBJMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected