Decoration sampling bug

  • Fusionftw
    13th Jul 2019 Member 0 Permalink

    When you sample deco from an element, it adds two to each rgb value (r,g,b).

     

    For example, if a diamond square is colored with rgb(255,0,0), it will be sampled as rgb(255,2,2).

     

    Same goes with a diamond square colored with rgb(0,127,0). That green diamond square will be sampled as rgb(2,129,2).

     

    Is this a floating point error, or an error on how decorations are stored?

  • jacob1
    13th Jul 2019 Developer 0 Permalink
    This does not happen for me. I drew pure red (by clicking the red color button) on some DUST, then sampled it, it was still rgb(255, 0, 0) according to the color picker.
  • Fusionftw
    13th Jul 2019 Member 0 Permalink

    For me, it happens on every deco color that I use. 

     

    I choose a preset color from the deco tab (I verified that the colors are not affected), draw it on an element, and then sample it.

     

    I am using powdertoy version 94.1.343 (WIN32 X86 X86_SSE X86_SSE2 LUACONSOLE GRAVFFT).

  • coryman
    13th Jul 2019 Member 1 Permalink

    By any chance are you in Heat Gradient Display? I get this in that mode but not in Nothing Display

  • Fusionftw
    13th Jul 2019 Member 0 Permalink

    Oops, I guess I did have the simulation in heat display.

  • jacob1
    13th Jul 2019 Developer 1 Permalink
    It samples the exact color that gets drawn to the screen, so heat gradient display would do it. And be not noticeable to the point where you might not realize you were in that mode.

    I guess that explains it ... not a bug.

    @coryman (View Post)
    Thanks, wouldn't have figured this out otherwise lol
    Edited once by jacob1. Last: 13th Jul 2019