So I'm digging through the code for creating that flashing cursor square when you mouse click to move somewhere. It's got a line: this.opacity = (20 - this._frameCount) * 3; This is what makes that cursor flash. I'd like to use this same idea for something, but instead change color instead of opacity. The .opacity property I assume is inherent to js? I tried searching the web but can't find any results, but are there other inherent properties for the color of a bitmap? Specifically I'm looking for "value" or how black or white it is. Anyone know if there's something for that for manipulating drawn bitmaps? Here's an example of what i'm trying to do: Trying to make flashing ground tiles similar to Shining Force 1-2. They don't flash with opacity, they actually cycle between white and black. So I was hoping to have a single value I could just plug into this, or write a sin wave type formula to do the same thing. Having to code something to gradate between 2 colors seems like overkill.