about the 'mlx_put_string' #97
-
i am using mlx_put_string and i am wondering how can i change string color and size |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The color could be potentially be changed by for instance applying some sort of multiplication to each pixel. The size however is fixed, font's are notorousliy difficult to handle. If you truly want to be able to have your own font besides the default one given by MLX, you have to implement it on your own. Using a sprite sheet is a good start and then creating an image with the correct width and height to which you can copy paste the pixels to should work. |
Beta Was this translation helpful? Give feedback.
The color could be potentially be changed by for instance applying some sort of multiplication to each pixel. The size however is fixed, font's are notorousliy difficult to handle.
If you truly want to be able to have your own font besides the default one given by MLX, you have to implement it on your own. Using a sprite sheet is a good start and then creating an image with the correct width and height to which you can copy paste the pixels to should work.