replit / kaboom

💥 JavaScript game library
https://kaboomjs.com
MIT License
2.67k stars 226 forks source link

Button playground example is using rbg() without arguments #760

Closed magical-heyrovsky closed 1 year ago

magical-heyrovsky commented 1 year ago

https://github.com/replit/kaboom/blob/52763e7a2f1c57a96693e2c486133aab09d1a55d/examples/button.js#L42

But 3 arguments are required^1. Same here https://github.com/replit/kaboom/blob/52763e7a2f1c57a96693e2c486133aab09d1a55d/examples/collision.js#L115

slmjkdbtl commented 1 year ago

rgb() is shorthand for rgb(255, 255, 255), added it to the docs!

magical-heyrovsky commented 1 year ago

Thanks. The definition is also missing in the kaboom.d.ts, that's how I noticed it:

image