Uses of Class
com.raylib.Color
Packages that use Color
-
Uses of Color in com.raylib
Fields in com.raylib declared as ColorModifier and TypeFieldDescriptionstatic Color
Raylib.BEIGE
static Color
Raylib.BLACK
static Color
Raylib.BLANK
static Color
Raylib.BLUE
static Color
Raylib.BROWN
static Color
Raylib.DARKBLUE
static Color
Raylib.DARKBROWN
static Color
Raylib.DARKGRAY
static Color
Raylib.DARKGREEN
static Color
Raylib.DARKPURPLE
static Color
Raylib.GOLD
static Color
Raylib.GRAY
static Color
Raylib.GREEN
static Color
Raylib.LIGHTGRAY
static Color
Raylib.LIME
static Color
Raylib.MAGENTA
static Color
Raylib.MAROON
static Color
Raylib.ORANGE
static Color
Raylib.PINK
static Color
Raylib.PURPLE
static Color
Raylib.RAYWHITE
static Color
Raylib.RED
static Color
Raylib.SKYBLUE
static Color
Raylib.VIOLET
static Color
Raylib.WHITE
static Color
Raylib.YELLOW
Methods in com.raylib that return ColorModifier and TypeMethodDescriptionstatic Color
Color.allocateArray
(long elementCount) Allocate an array of Colorstatic Color
Color.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Colorstatic Color
Raylib.colorAlpha
(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Raylib.colorAlpha
(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Raylib.colorAlphaBlend
(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
Raylib.colorAlphaBlend
(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
Raylib.colorBrightness
(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
Raylib.colorBrightness
(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
Raylib.colorContrast
(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Color
Raylib.colorContrast
(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Color
Raylib.colorFromHSV
(float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static Color
Raylib.colorFromHSV
(Arena arena, float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static Color
Raylib.colorFromNormalized
(Vector4 normalized) Get Color from normalized values [0..1]static Color
Raylib.colorFromNormalized
(Arena arena, Vector4 normalized) Get Color from normalized values [0..1]static Color
Get color multiplied with another colorstatic Color
Get color multiplied with another colorstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fColor.getArrayElement
(int index) MaterialMap.getColor()
Material map colorstatic Color
Raylib.getColor
(int hexValue) Get Color structure from hexadecimal valuestatic Color
Get Color structure from hexadecimal valuestatic Color
Raylib.getImageColor
(Image image, int x, int y) Get image pixel color at (x, y) positionstatic Color
Raylib.getImageColor
(Arena arena, Image image, int x, int y) Get image pixel color at (x, y) positionstatic Color
Raylib.getPixelColor
(Arena arena, MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic Color
Raylib.getPixelColor
(MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic Color
Raylib.loadImageColors
(Image image) Load color data from image as a Color array (RGBA - 32bit)static Color
Raylib.loadImagePalette
(Image image, int maxPaletteSize, IntBuffer colorCount) Load colors palette from image as a Color array (RGBA - 32bit)Color.setA
(byte value) Color alpha valueColor.setB
(byte value) Color blue valueColor.setG
(byte value) Color green valueColor.setR
(byte value) Color red valueMethods in com.raylib with parameters of type ColorModifier and TypeMethodDescriptionstatic void
Raylib.clearBackground
(Color color) Set background color (framebuffer clear color)static Color
Raylib.colorAlpha
(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Raylib.colorAlpha
(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Raylib.colorAlphaBlend
(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
Raylib.colorAlphaBlend
(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
Raylib.colorBrightness
(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
Raylib.colorBrightness
(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
Raylib.colorContrast
(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Color
Raylib.colorContrast
(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Vector4
Raylib.colorNormalize
(Color color) Get Color normalized as float [0..1]static Vector4
Raylib.colorNormalize
(Arena arena, Color color) Get Color normalized as float [0..1]static Color
Get color multiplied with another colorstatic Color
Get color multiplied with another colorstatic Vector3
Raylib.colorToHSV
(Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static Vector3
Raylib.colorToHSV
(Arena arena, Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static int
Raylib.colorToInt
(Color color) Get hexadecimal value for a Colorstatic void
Raylib.drawBillboard
(Camera3D camera, Texture texture, Vector3 position, float size, Color tint) Draw a billboard texturestatic void
Raylib.drawBillboardPro
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) Draw a billboard texture defined by source and rotationstatic void
Raylib.drawBillboardRec
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic void
Raylib.drawBoundingBox
(BoundingBox box, Color color) Draw bounding box (wires)static void
Raylib.drawCapsule
(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) Draw a capsule with the center of its sphere caps at startPos and endPosstatic void
Raylib.drawCapsuleWires
(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) Draw capsule wireframe with the center of its sphere caps at startPos and endPosstatic void
Raylib.drawCircle
(int centerX, int centerY, float radius, Color color) Draw a color-filled circlestatic void
Raylib.drawCircle3D
(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) Draw a circle in 3D world spacestatic void
Raylib.drawCircleGradient
(int centerX, int centerY, float radius, Color color1, Color color2) Draw a gradient-filled circlestatic void
Raylib.drawCircleLines
(int centerX, int centerY, float radius, Color color) Draw circle outlinestatic void
Raylib.drawCircleLinesV
(Vector2 center, float radius, Color color) Draw circle outline (Vector version)static void
Raylib.drawCircleSector
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw a piece of a circlestatic void
Raylib.drawCircleSectorLines
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw circle sector outlinestatic void
Raylib.drawCircleV
(Vector2 center, float radius, Color color) Draw a color-filled circle (Vector version)static void
Draw cubestatic void
Draw cube (Vector version)static void
Raylib.drawCubeWires
(Vector3 position, float width, float height, float length, Color color) Draw cube wiresstatic void
Raylib.drawCubeWiresV
(Vector3 position, Vector3 size, Color color) Draw cube wires (Vector version)static void
Raylib.drawCylinder
(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/conestatic void
Raylib.drawCylinderEx
(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder with base at startPos and top at endPosstatic void
Raylib.drawCylinderWires
(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/cone wiresstatic void
Raylib.drawCylinderWiresEx
(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder wires with base at startPos and top at endPosstatic void
Raylib.drawEllipse
(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipsestatic void
Raylib.drawEllipseLines
(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipse outlinestatic void
Draw a linestatic void
Raylib.drawLine3D
(Vector3 startPos, Vector3 endPos, Color color) Draw a line in 3D world spacestatic void
Raylib.drawLineBezier
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw line segment cubic-bezier in-out interpolationstatic void
Raylib.drawLineEx
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw a line (using triangles/quads)static void
Raylib.drawLineStrip
(Vector2 points, int pointCount, Color color) Draw lines sequence (using gl lines)static void
Draw a line (using gl lines)static void
Draw a model (with texture if set)static void
Raylib.drawModelEx
(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model with extended parametersstatic void
Raylib.drawModelWires
(Model model, Vector3 position, float scale, Color tint) Draw a model wires (with texture if set)static void
Raylib.drawModelWiresEx
(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model wires (with texture if set) with extended parametersstatic void
Draw a pixelstatic void
Raylib.drawPixelV
(Vector2 position, Color color) Draw a pixel (Vector version)static void
Draw a plane XZstatic void
Raylib.drawPoint3D
(Vector3 position, Color color) Draw a point in 3D space, actually a small linestatic void
Draw a regular polygon (Vector version)static void
Raylib.drawPolyLines
(Vector2 center, int sides, float radius, float rotation, Color color) Draw a polygon outline of n sidesstatic void
Raylib.drawPolyLinesEx
(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) Draw a polygon outline of n sides with extended parametersstatic void
Draw a ray linestatic void
Raylib.drawRectangle
(int posX, int posY, int width, int height, Color color) Draw a color-filled rectanglestatic void
Draw a gradient-filled rectangle with custom vertex colorsstatic void
Raylib.drawRectangleGradientH
(int posX, int posY, int width, int height, Color color1, Color color2) Draw a horizontal-gradient-filled rectanglestatic void
Raylib.drawRectangleGradientV
(int posX, int posY, int width, int height, Color color1, Color color2) Draw a vertical-gradient-filled rectanglestatic void
Raylib.drawRectangleLines
(int posX, int posY, int width, int height, Color color) Draw rectangle outlinestatic void
Raylib.drawRectangleLinesEx
(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic void
Raylib.drawRectanglePro
(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic void
Raylib.drawRectangleRec
(Rectangle rec, Color color) Draw a color-filled rectanglestatic void
Raylib.drawRectangleRounded
(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic void
Raylib.drawRectangleRoundedLines
(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic void
Raylib.drawRectangleV
(Vector2 position, Vector2 size, Color color) Draw a color-filled rectangle (Vector version)static void
Raylib.drawRing
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ringstatic void
Raylib.drawRingLines
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ring outlinestatic void
Raylib.drawSphere
(Vector3 centerPos, float radius, Color color) Draw spherestatic void
Raylib.drawSphereEx
(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere with extended parametersstatic void
Raylib.drawSphereWires
(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere wiresstatic void
Raylib.drawSplineBasis
(Vector2 points, int pointCount, float thick, Color color) Draw spline: B-Spline, minimum 4 pointsstatic void
Raylib.drawSplineBezierCubic
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]static void
Raylib.drawSplineBezierQuadratic
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]static void
Raylib.drawSplineCatmullRom
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Catmull-Rom, minimum 4 pointsstatic void
Raylib.drawSplineLinear
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Linear, minimum 2 pointsstatic void
Raylib.drawSplineSegmentBasis
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: B-Spline, 4 pointsstatic void
Raylib.drawSplineSegmentBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) Draw spline segment: Cubic Bezier, 2 points, 2 control pointsstatic void
Raylib.drawSplineSegmentBezierQuadratic
(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) Draw spline segment: Quadratic Bezier, 2 points, 1 control pointstatic void
Raylib.drawSplineSegmentCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: Catmull-Rom, 4 pointsstatic void
Raylib.drawSplineSegmentLinear
(Vector2 p1, Vector2 p2, float thick, Color color) Draw spline segment: Linear, 2 pointsstatic void
Draw text (using default font)static void
Raylib.drawTextCodepoint
(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static void
Raylib.drawTextCodepoints
(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static void
Raylib.drawTextEx
(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic void
Raylib.drawTextPro
(Font font, String text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) Draw text using Font and pro parameters (rotation)static void
Raylib.drawTexture
(Texture texture, int posX, int posY, Color tint) Draw a Texture2Dstatic void
Raylib.drawTextureEx
(Texture texture, Vector2 position, float rotation, float scale, Color tint) Draw a Texture2D with extended parametersstatic void
Raylib.drawTextureNPatch
(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicelystatic void
Raylib.drawTexturePro
(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) Draw a part of a texture defined by a rectangle with 'pro' parametersstatic void
Raylib.drawTextureRec
(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic void
Raylib.drawTextureV
(Texture texture, Vector2 position, Color tint) Draw a Texture2D with position defined as Vector2static void
Raylib.drawTriangle
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static void
Raylib.drawTriangle3D
(Vector3 v1, Vector3 v2, Vector3 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static void
Raylib.drawTriangleFan
(Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points (first vertex is the center)static void
Raylib.drawTriangleLines
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw triangle outline (vertex in counter-clockwise order!)static void
Raylib.drawTriangleStrip
(Vector2 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic void
Raylib.drawTriangleStrip3D
(Vector3 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Image
Raylib.genImageChecked
(int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic Image
Raylib.genImageChecked
(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic Image
Raylib.genImageColor
(int width, int height, Color color) Generate image: plain colorstatic Image
Raylib.genImageColor
(Arena arena, int width, int height, Color color) Generate image: plain colorstatic Image
Raylib.genImageGradientLinear
(int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic Image
Raylib.genImageGradientLinear
(Arena arena, int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic Image
Raylib.genImageGradientRadial
(int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic Image
Raylib.genImageGradientRadial
(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic Image
Raylib.genImageGradientSquare
(int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic Image
Raylib.genImageGradientSquare
(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic void
Raylib.imageAlphaClear
(Image image, Color color, float threshold) Clear alpha channel to desired colorstatic void
Raylib.imageClearBackground
(Image dst, Color color) Clear image background with given colorstatic void
Raylib.imageColorReplace
(Image image, Color color, Color replace) Modify image color: replace colorstatic void
Raylib.imageColorTint
(Image image, Color color) Modify image color: tintstatic void
Draw a source image within a destination image (tint applied to source)static void
Raylib.imageDrawCircle
(Image dst, int centerX, int centerY, int radius, Color color) Draw a filled circle within an imagestatic void
Raylib.imageDrawCircleLines
(Image dst, int centerX, int centerY, int radius, Color color) Draw circle outline within an imagestatic void
Raylib.imageDrawCircleLinesV
(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static void
Raylib.imageDrawCircleV
(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static void
Raylib.imageDrawLine
(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) Draw line within an imagestatic void
Raylib.imageDrawLineV
(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static void
Raylib.imageDrawPixel
(Image dst, int posX, int posY, Color color) Draw pixel within an imagestatic void
Raylib.imageDrawPixelV
(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static void
Raylib.imageDrawRectangle
(Image dst, int posX, int posY, int width, int height, Color color) Draw rectangle within an imagestatic void
Raylib.imageDrawRectangleLines
(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic void
Raylib.imageDrawRectangleRec
(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic void
Raylib.imageDrawRectangleV
(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static void
Raylib.imageDrawText
(Image dst, String text, int posX, int posY, int fontSize, Color color) Draw text (using default font) within an image (destination)static void
Raylib.imageDrawTextEx
(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)static void
Raylib.imageResizeCanvas
(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) Resize canvas and fill with colorstatic Image
Create an image from text (default font)static Image
Create an image from text (default font)static Image
Raylib.imageTextEx
(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static Image
Raylib.imageTextEx
(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static void
Raylib.imageToPOT
(Image image, Color fill) Convert image to POT (power-of-two)static Font
Raylib.loadFontFromImage
(Image image, Color key, int firstChar) Load font from Image (XNA style)static Font
Raylib.loadFontFromImage
(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)Material map colorstatic void
Raylib.setPixelColor
(MemorySegment dstPtr, Color color, int format) Set color formatted into destination pixel pointerstatic void
Raylib.unloadImageColors
(Color colors) Unload color data loaded with LoadImageColors()static void
Raylib.unloadImagePalette
(Color colors) Unload colors palette loaded with LoadImagePalette()Constructors in com.raylib with parameters of type ColorModifierConstructorDescriptionMaterialMap
(Texture texture, Color color, float value) Construct with auto memory allocator and fields initialized as specifiedMaterialMap
(SegmentAllocator arena, Texture texture, Color color, float value) Construct with your own memory allocator and fields initialized as specified