janet-lang / jaylib

Janet bindings to Raylib
MIT License
137 stars 36 forks source link

is rgba Color creation supported? #29

Closed gamecubate closed 2 years ago

gamecubate commented 2 years ago

Hi. This lib is really good. Thanks for that.

How do I create a color with transparency? (color-alpha 255 0 0 255) seems a no-show.

gamecubate commented 2 years ago

Oh. It looks like that may not have been implemented yet.

api.txt:
...
// Color-related functions
[ ] int ColorToInt(Color color)
[ ] Vector4 ColorNormalize(Color color)
[ ] Vector3 ColorToHSV(Color color)
[ ] Color ColorFromHSV(Vector3 hsv)
[ ] Color GetColor(int hexValue)
[ ] Color Fade(Color color, float alpha)

Will look further into this.

gamecubate commented 2 years ago

Never mind. I figured it out.

(draw-circle cx cy r [1 0 0 0.5])