asdf-games/lib/Lightsource.js

9 lines
224 B
JavaScript
Raw Normal View History

2020-03-24 20:29:33 +01:00
class Lightsource {
constructor(radius, style = { start: "rgba(255,255,255,0.5)", stop: "rgba(0,0,0,0.9)" }) {
this.pos = { x: 0, y: 0 };
this.radius = radius;
this.style = style;
}
}
module.exports = Lightsource;