excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.77k stars 189 forks source link

Docs: improve documentation for graphics #3067

Open KokoDoko opened 4 months ago

KokoDoko commented 4 months ago

Context

I find the documentation for working with graphics a bit confusing / contradictory (not talking about spritesheet animations).

Proposal

const actor = new ex.Actor()
const circle = new ex.Circle({
  radius: 10,
  color: ex.Color.Red,
  strokeColor: Color.Red,
  lineWidth: .5
});
actor.graphics.use(circle);
eonarheim commented 3 months ago

@KokoDoko 100% agree, this would be a net win

github-actions[bot] commented 1 month ago

This issue hasn't had any recent activity lately and is being marked as stale automatically.