about the 'mlx_put_string' #97
Answered by W2Wizard
ThEWoLf882-42 asked this question in Q&A
-
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.
Answered by W2Wizard Mar 6, 2023
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.
3 replies
Answer selected by ThEWoLf882-42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.