~evantj/hare-raylib

557e554dbf4540a697df51635c609c0a79098109 — Evan Johnston a month ago 5fa1da9 master
unmix mixup between green and blue
2 files changed, 27 insertions(+), 27 deletions(-)

M hare-raylib.py
M raylib/raylib.ha
M hare-raylib.py => hare-raylib.py +1 -1
@@ 65,7 65,7 @@ def ctype_to_hare(ctype, unsigned = False, wrapping = False, pointer_array = Fal

def color_lit(value):
    fields = [x.strip() for x in value[17:-2].split(',')]
    return "Color {r = %s, b = %s, g = %s, a = %s}" % (* fields,)
    return "Color {r = %s, g = %s, b = %s, a = %s}" % (* fields,)

def document(value, indent = False):
    description = value["description"]

M raylib/raylib.ha => raylib/raylib.ha +26 -26
@@ 23,82 23,82 @@ export def DEG2RAD: f64 = (PI/180.0);
export def RAD2DEG: f64 = (180.0/PI);

// Light Gray
export const LIGHTGRAY: Color = Color {r = 200, b = 200, g = 200, a = 255};
export const LIGHTGRAY: Color = Color {r = 200, g = 200, b = 200, a = 255};

// Gray
export const GRAY: Color = Color {r = 130, b = 130, g = 130, a = 255};
export const GRAY: Color = Color {r = 130, g = 130, b = 130, a = 255};

// Dark Gray
export const DARKGRAY: Color = Color {r = 80, b = 80, g = 80, a = 255};
export const DARKGRAY: Color = Color {r = 80, g = 80, b = 80, a = 255};

// Yellow
export const YELLOW: Color = Color {r = 253, b = 249, g = 0, a = 255};
export const YELLOW: Color = Color {r = 253, g = 249, b = 0, a = 255};

// Gold
export const GOLD: Color = Color {r = 255, b = 203, g = 0, a = 255};
export const GOLD: Color = Color {r = 255, g = 203, b = 0, a = 255};

// Orange
export const ORANGE: Color = Color {r = 255, b = 161, g = 0, a = 255};
export const ORANGE: Color = Color {r = 255, g = 161, b = 0, a = 255};

// Pink
export const PINK: Color = Color {r = 255, b = 109, g = 194, a = 255};
export const PINK: Color = Color {r = 255, g = 109, b = 194, a = 255};

// Red
export const RED: Color = Color {r = 230, b = 41, g = 55, a = 255};
export const RED: Color = Color {r = 230, g = 41, b = 55, a = 255};

// Maroon
export const MAROON: Color = Color {r = 190, b = 33, g = 55, a = 255};
export const MAROON: Color = Color {r = 190, g = 33, b = 55, a = 255};

// Green
export const GREEN: Color = Color {r = 0, b = 228, g = 48, a = 255};
export const GREEN: Color = Color {r = 0, g = 228, b = 48, a = 255};

// Lime
export const LIME: Color = Color {r = 0, b = 158, g = 47, a = 255};
export const LIME: Color = Color {r = 0, g = 158, b = 47, a = 255};

// Dark Green
export const DARKGREEN: Color = Color {r = 0, b = 117, g = 44, a = 255};
export const DARKGREEN: Color = Color {r = 0, g = 117, b = 44, a = 255};

// Sky Blue
export const SKYBLUE: Color = Color {r = 102, b = 191, g = 255, a = 255};
export const SKYBLUE: Color = Color {r = 102, g = 191, b = 255, a = 255};

// Blue
export const BLUE: Color = Color {r = 0, b = 121, g = 241, a = 255};
export const BLUE: Color = Color {r = 0, g = 121, b = 241, a = 255};

// Dark Blue
export const DARKBLUE: Color = Color {r = 0, b = 82, g = 172, a = 255};
export const DARKBLUE: Color = Color {r = 0, g = 82, b = 172, a = 255};

// Purple
export const PURPLE: Color = Color {r = 200, b = 122, g = 255, a = 255};
export const PURPLE: Color = Color {r = 200, g = 122, b = 255, a = 255};

// Violet
export const VIOLET: Color = Color {r = 135, b = 60, g = 190, a = 255};
export const VIOLET: Color = Color {r = 135, g = 60, b = 190, a = 255};

// Dark Purple
export const DARKPURPLE: Color = Color {r = 112, b = 31, g = 126, a = 255};
export const DARKPURPLE: Color = Color {r = 112, g = 31, b = 126, a = 255};

// Beige
export const BEIGE: Color = Color {r = 211, b = 176, g = 131, a = 255};
export const BEIGE: Color = Color {r = 211, g = 176, b = 131, a = 255};

// Brown
export const BROWN: Color = Color {r = 127, b = 106, g = 79, a = 255};
export const BROWN: Color = Color {r = 127, g = 106, b = 79, a = 255};

// Dark Brown
export const DARKBROWN: Color = Color {r = 76, b = 63, g = 47, a = 255};
export const DARKBROWN: Color = Color {r = 76, g = 63, b = 47, a = 255};

// White
export const WHITE: Color = Color {r = 255, b = 255, g = 255, a = 255};
export const WHITE: Color = Color {r = 255, g = 255, b = 255, a = 255};

// Black
export const BLACK: Color = Color {r = 0, b = 0, g = 0, a = 255};
export const BLACK: Color = Color {r = 0, g = 0, b = 0, a = 255};

// Blank (Transparent)
export const BLANK: Color = Color {r = 0, b = 0, g = 0, a = 0};
export const BLANK: Color = Color {r = 0, g = 0, b = 0, a = 0};

// Magenta
export const MAGENTA: Color = Color {r = 255, b = 0, g = 255, a = 255};
export const MAGENTA: Color = Color {r = 255, g = 0, b = 255, a = 255};

// My own White (raylib logo)
export const RAYWHITE: Color = Color {r = 245, b = 245, g = 245, a = 255};
export const RAYWHITE: Color = Color {r = 245, g = 245, b = 245, a = 255};

// Vector2, 2 components
export type Vector2 = struct {