0 Favourites

Canvas - "Draw Point" action only draws red channel?

This forum is currently in read-only mode.
  • I might just be doing something wrong, but the "Draw Point" action for the Canvas object seems to treat the green and blue color components of the color parameter as zero, regardless of the color I pick.

    That is, if I try to draw a white (255,255,255) point, I get a red (255,0,0) point.

    Likewise a gray point (128,128,128), is drawn as a dark red (128,0,0) point.

    A blue (0,0,255) point is drawn as a black (0,0,0) point.

    It's as if the blue and green values are being discarded.

    Am I just doing something wrong, or is this a known issue? I couldn�t find another mention of it in the forums.

  • assuming your using "USE EXPRESSION" did you write RGB(255,255,255) or only (255,255,255) in the expression? assuming you didnt try it, put the RGB and see how the turns out.

    if its happening while your using the colour box default thingy it might be a bug

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I did try using RGB(rrr,ggg,bbb) expressions, and I got the same results. Interestingly, turning the opacity from 100 to 255, caused the points to display correctly for a few runs, but eventually I was back to only seeing the red channel. The "Draw line" and "Fill rectangle" actions seem to work fine for drawing points of any color though.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[PLUGIN] Canvas
627 186,653
zenox98's avatar
Unread hot topic
0 Favourites
[Plugin] Three.js 3D canvas
134 12,721
Schoening's avatar
Unread hot topic
0 Favourites
Space Zombies by RED BABOON
77 9,768
imothep85's avatar