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 ColorRaylib.BEIGEstatic ColorRaylib.BLACKstatic ColorRaylib.BLANKstatic ColorRaylib.BLUEstatic ColorRaylib.BROWNstatic ColorRaylib.DARKBLUEstatic ColorRaylib.DARKBROWNstatic ColorRaylib.DARKGRAYstatic ColorRaylib.DARKGREENstatic ColorRaylib.DARKPURPLEstatic ColorRaylib.GOLDstatic ColorRaylib.GRAYstatic ColorRaylib.GREENstatic ColorRaylib.LIGHTGRAYstatic ColorRaylib.LIMEstatic ColorRaylib.MAGENTAstatic ColorRaylib.MAROONstatic ColorRaylib.ORANGEstatic ColorRaylib.PINKstatic ColorRaylib.PURPLEstatic ColorRaylib.RAYWHITEstatic ColorRaylib.REDstatic ColorRaylib.SKYBLUEstatic ColorRaylib.VIOLETstatic ColorRaylib.WHITEstatic ColorRaylib.YELLOWMethods in com.raylib that return ColorModifier and TypeMethodDescriptionstatic ColorColor.allocateArray(long elementCount) Allocate an array of Colorstatic ColorColor.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of Colorstatic ColorRaylib.colorAlpha(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorRaylib.colorAlpha(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorRaylib.colorAlphaBlend(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorRaylib.colorAlphaBlend(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorRaylib.colorBrightness(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorRaylib.colorBrightness(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorRaylib.colorContrast(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic ColorRaylib.colorContrast(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic ColorRaylib.colorFromHSV(float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static ColorRaylib.colorFromHSV(Arena arena, float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static ColorRaylib.colorFromNormalized(Vector4 normalized) Get Color from normalized values [0..1]static ColorRaylib.colorFromNormalized(Arena arena, Vector4 normalized) Get Color from normalized values [0..1]static ColorGet color multiplied with another colorstatic ColorGet color multiplied with another colorstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fColor.getArrayElement(int index) MaterialMap.getColor()Material map colorstatic ColorRaylib.getColor(int hexValue) Get Color structure from hexadecimal valuestatic ColorGet Color structure from hexadecimal valuestatic ColorRaylib.getImageColor(Image image, int x, int y) Get image pixel color at (x, y) positionstatic ColorRaylib.getImageColor(Arena arena, Image image, int x, int y) Get image pixel color at (x, y) positionstatic ColorRaylib.getPixelColor(Arena arena, MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic ColorRaylib.getPixelColor(MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic ColorRaylib.loadImageColors(Image image) Load color data from image as a Color array (RGBA - 32bit)static ColorRaylib.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 voidRaylib.clearBackground(Color color) Set background color (framebuffer clear color)static ColorRaylib.colorAlpha(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorRaylib.colorAlpha(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorRaylib.colorAlphaBlend(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorRaylib.colorAlphaBlend(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorRaylib.colorBrightness(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorRaylib.colorBrightness(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorRaylib.colorContrast(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic ColorRaylib.colorContrast(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Vector4Raylib.colorNormalize(Color color) Get Color normalized as float [0..1]static Vector4Raylib.colorNormalize(Arena arena, Color color) Get Color normalized as float [0..1]static ColorGet color multiplied with another colorstatic ColorGet color multiplied with another colorstatic Vector3Raylib.colorToHSV(Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static Vector3Raylib.colorToHSV(Arena arena, Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static intRaylib.colorToInt(Color color) Get hexadecimal value for a Colorstatic voidRaylib.drawBillboard(Camera3D camera, Texture texture, Vector3 position, float size, Color tint) Draw a billboard texturestatic voidRaylib.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 voidRaylib.drawBillboardRec(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic voidRaylib.drawBoundingBox(BoundingBox box, Color color) Draw bounding box (wires)static voidRaylib.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 voidRaylib.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 voidRaylib.drawCircle(int centerX, int centerY, float radius, Color color) Draw a color-filled circlestatic voidRaylib.drawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) Draw a circle in 3D world spacestatic voidRaylib.drawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) Draw a gradient-filled circlestatic voidRaylib.drawCircleLines(int centerX, int centerY, float radius, Color color) Draw circle outlinestatic voidRaylib.drawCircleLinesV(Vector2 center, float radius, Color color) Draw circle outline (Vector version)static voidRaylib.drawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw a piece of a circlestatic voidRaylib.drawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw circle sector outlinestatic voidRaylib.drawCircleV(Vector2 center, float radius, Color color) Draw a color-filled circle (Vector version)static voidDraw cubestatic voidDraw cube (Vector version)static voidRaylib.drawCubeWires(Vector3 position, float width, float height, float length, Color color) Draw cube wiresstatic voidRaylib.drawCubeWiresV(Vector3 position, Vector3 size, Color color) Draw cube wires (Vector version)static voidRaylib.drawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/conestatic voidRaylib.drawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder with base at startPos and top at endPosstatic voidRaylib.drawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/cone wiresstatic voidRaylib.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 voidRaylib.drawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipsestatic voidRaylib.drawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipse outlinestatic voidDraw a linestatic voidRaylib.drawLine3D(Vector3 startPos, Vector3 endPos, Color color) Draw a line in 3D world spacestatic voidRaylib.drawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw line segment cubic-bezier in-out interpolationstatic voidRaylib.drawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw a line (using triangles/quads)static voidRaylib.drawLineStrip(Vector2 points, int pointCount, Color color) Draw lines sequence (using gl lines)static voidDraw a line (using gl lines)static voidDraw a model (with texture if set)static voidRaylib.drawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model with extended parametersstatic voidRaylib.drawModelWires(Model model, Vector3 position, float scale, Color tint) Draw a model wires (with texture if set)static voidRaylib.drawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model wires (with texture if set) with extended parametersstatic voidDraw a pixelstatic voidRaylib.drawPixelV(Vector2 position, Color color) Draw a pixel (Vector version)static voidDraw a plane XZstatic voidRaylib.drawPoint3D(Vector3 position, Color color) Draw a point in 3D space, actually a small linestatic voidDraw a regular polygon (Vector version)static voidRaylib.drawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) Draw a polygon outline of n sidesstatic voidRaylib.drawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) Draw a polygon outline of n sides with extended parametersstatic voidDraw a ray linestatic voidRaylib.drawRectangle(int posX, int posY, int width, int height, Color color) Draw a color-filled rectanglestatic voidDraw a gradient-filled rectangle with custom vertex colorsstatic voidRaylib.drawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) Draw a horizontal-gradient-filled rectanglestatic voidRaylib.drawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) Draw a vertical-gradient-filled rectanglestatic voidRaylib.drawRectangleLines(int posX, int posY, int width, int height, Color color) Draw rectangle outlinestatic voidRaylib.drawRectangleLinesEx(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic voidRaylib.drawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic voidRaylib.drawRectangleRec(Rectangle rec, Color color) Draw a color-filled rectanglestatic voidRaylib.drawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic voidRaylib.drawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic voidRaylib.drawRectangleV(Vector2 position, Vector2 size, Color color) Draw a color-filled rectangle (Vector version)static voidRaylib.drawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ringstatic voidRaylib.drawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ring outlinestatic voidRaylib.drawSphere(Vector3 centerPos, float radius, Color color) Draw spherestatic voidRaylib.drawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere with extended parametersstatic voidRaylib.drawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere wiresstatic voidRaylib.drawSplineBasis(Vector2 points, int pointCount, float thick, Color color) Draw spline: B-Spline, minimum 4 pointsstatic voidRaylib.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 voidRaylib.drawSplineBezierQuadratic(Vector2 points, int pointCount, float thick, Color color) Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]static voidRaylib.drawSplineCatmullRom(Vector2 points, int pointCount, float thick, Color color) Draw spline: Catmull-Rom, minimum 4 pointsstatic voidRaylib.drawSplineLinear(Vector2 points, int pointCount, float thick, Color color) Draw spline: Linear, minimum 2 pointsstatic voidRaylib.drawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: B-Spline, 4 pointsstatic voidRaylib.drawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) Draw spline segment: Cubic Bezier, 2 points, 2 control pointsstatic voidRaylib.drawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) Draw spline segment: Quadratic Bezier, 2 points, 1 control pointstatic voidRaylib.drawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: Catmull-Rom, 4 pointsstatic voidRaylib.drawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) Draw spline segment: Linear, 2 pointsstatic voidDraw text (using default font)static voidRaylib.drawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static voidRaylib.drawTextCodepoints(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static voidRaylib.drawTextEx(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic voidRaylib.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 voidRaylib.drawTexture(Texture texture, int posX, int posY, Color tint) Draw a Texture2Dstatic voidRaylib.drawTextureEx(Texture texture, Vector2 position, float rotation, float scale, Color tint) Draw a Texture2D with extended parametersstatic voidRaylib.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 voidRaylib.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 voidRaylib.drawTextureRec(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic voidRaylib.drawTextureV(Texture texture, Vector2 position, Color tint) Draw a Texture2D with position defined as Vector2static voidRaylib.drawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static voidRaylib.drawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static voidRaylib.drawTriangleFan(Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points (first vertex is the center)static voidRaylib.drawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw triangle outline (vertex in counter-clockwise order!)static voidRaylib.drawTriangleStrip(Vector2 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic voidRaylib.drawTriangleStrip3D(Vector3 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fstatic ImageRaylib.genImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImageRaylib.genImageChecked(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImageRaylib.genImageColor(int width, int height, Color color) Generate image: plain colorstatic ImageRaylib.genImageColor(Arena arena, int width, int height, Color color) Generate image: plain colorstatic ImageRaylib.genImageGradientLinear(int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic ImageRaylib.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 ImageRaylib.genImageGradientRadial(int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImageRaylib.genImageGradientRadial(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImageRaylib.genImageGradientSquare(int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic ImageRaylib.genImageGradientSquare(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic voidRaylib.imageAlphaClear(Image image, Color color, float threshold) Clear alpha channel to desired colorstatic voidRaylib.imageClearBackground(Image dst, Color color) Clear image background with given colorstatic voidRaylib.imageColorReplace(Image image, Color color, Color replace) Modify image color: replace colorstatic voidRaylib.imageColorTint(Image image, Color color) Modify image color: tintstatic voidDraw a source image within a destination image (tint applied to source)static voidRaylib.imageDrawCircle(Image dst, int centerX, int centerY, int radius, Color color) Draw a filled circle within an imagestatic voidRaylib.imageDrawCircleLines(Image dst, int centerX, int centerY, int radius, Color color) Draw circle outline within an imagestatic voidRaylib.imageDrawCircleLinesV(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static voidRaylib.imageDrawCircleV(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static voidRaylib.imageDrawLine(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) Draw line within an imagestatic voidRaylib.imageDrawLineV(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static voidRaylib.imageDrawPixel(Image dst, int posX, int posY, Color color) Draw pixel within an imagestatic voidRaylib.imageDrawPixelV(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static voidRaylib.imageDrawRectangle(Image dst, int posX, int posY, int width, int height, Color color) Draw rectangle within an imagestatic voidRaylib.imageDrawRectangleLines(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic voidRaylib.imageDrawRectangleRec(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic voidRaylib.imageDrawRectangleV(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static voidRaylib.imageDrawText(Image dst, String text, int posX, int posY, int fontSize, Color color) Draw text (using default font) within an image (destination)static voidRaylib.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 voidRaylib.imageResizeCanvas(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) Resize canvas and fill with colorstatic ImageCreate an image from text (default font)static ImageCreate an image from text (default font)static ImageRaylib.imageTextEx(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static ImageRaylib.imageTextEx(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static voidRaylib.imageToPOT(Image image, Color fill) Convert image to POT (power-of-two)static FontRaylib.loadFontFromImage(Image image, Color key, int firstChar) Load font from Image (XNA style)static FontRaylib.loadFontFromImage(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)Material map colorstatic voidRaylib.setPixelColor(MemorySegment dstPtr, Color color, int format) Set color formatted into destination pixel pointerstatic voidRaylib.unloadImageColors(Color colors) Unload color data loaded with LoadImageColors()static voidRaylib.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