This is exactly what i was looking for, i learned coding with Processing and P5 but now wanted to move on to more useful languages. This is very close to what those toolsets usually build, very helpful! Thanks
3 года назад
@8:03 you could probably write this if statements in a single line using clamp. value = clamp(value, 0, max_value)
Hi, it's cool and everything, but you can definitely do a circular progress bar with TextureProgress. Just look up the options on fill_mode. :) It might be complicated to customize the style compared to custom drawn one, but for most people's purposes it is probably good enough.
I would highly recommend using set_pixel() in combination with an image if you want to make this into a full program, however you can try to use (ViewportTexture).get_data().save_png() to save one. save_png() only works on images, not textures, and get_data() returns an image using the texture.