Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Issues with Sprite.color  (Read 5943 times)

0 Members and 1 Guest are viewing this topic.

pataroose

  • Newbie
  • *
  • Posts: 1
    • View Profile
Issues with Sprite.color
« on: December 28, 2013, 05:26:24 am »
Sprite spr = new Sprite();
spr.color = Color(123, 123, 123);
writeln(spr.color);

The code above prints out a color with the default 255 for all values. I've poked around DSFML's source code and it's not readily apparent why this is happening, but it seems that, for me at least, the entire feature is broken; colorization simply does not work. I am using the latest build.

Any ideas as to what's going on / how to fix? Thanks.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: Issues with Sprite.color
« Reply #1 on: December 28, 2013, 06:55:47 am »
Yep, definitely missed this.

Found the reason for it, and just uploaded a fix.
DSFML - SFML for the D Programming Language.

 

anything