You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in this page's example for raylib the function draw_title() uses float for color.Raylib's color uses char. also the range for color in raylib is (i think) 0 - 255, where as here the value of opacity here is 0-1.
voiddraw_tile(void*image, unsigned intsx, unsigned intsy, unsigned intsw, unsigned intsh,
unsigned intdx, unsigned intdy, floatopacity, unsigned intflags) {
// here the opacity has the value between 0-1, raylibs color is 0-255DrawTextureRec((Texture2D*)image, (Rectangle) {sx, sy, sw, sh}, (Vector2) {dx, dy}, (Color) {opacity, opacity, opacity, opacity});
}
maybe something like this is the solution, idk if there is a better one.
in this page's example for raylib the function
draw_title()
uses float for color.Raylib's color useschar
. also the range for color in raylib is (i think) 0 - 255, where as here the value of opacity here is 0-1.maybe something like this is the solution, idk if there is a better one.
The text was updated successfully, but these errors were encountered: