How do I change the color of a particle?

  • Furry_02
    24th Jun 2021 Member 0 Permalink

    What I mean in the title is, how do I change the color of a particle at runtime, not the default color.

  • jacob1
    24th Jun 2021 Developer 0 Permalink
    @Furry_02 (View Post)
    The best documentation we have for this is actually the Lua docs: https://powdertoy.co.uk/Wiki/W/Lua.html#tpt.graphics_func

    But back to C++, you create a Graphics function (check how other elements such as ACID do this), then return a large list of arguments (documented in that wiki link) and flags. This will control the rendering. Set cache to 0 if your element may vary from the default based on particle properties.
  • Furry_02
    24th Jun 2021 Member 0 Permalink

    @jacob1 (View Post)

     Thanks for the help, I'll go look at that now

    Edited once by Furry_02. Last: 24th Jun 2021