Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PACMAN

21 views
Skip to first unread message

Lina Bousbina

unread,
Oct 5, 2022, 9:22:06 AM10/5/22
to
How can I create a PACMAN graphic with javascript?

luserdroog

unread,
Oct 5, 2022, 10:49:30 AM10/5/22
to
On Wednesday, October 5, 2022 at 8:22:06 AM UTC-5, Lina Bousbina wrote:
> How can I create a PACMAN graphic with javascript?

Use HTML5 Canvas.

JJ

unread,
Oct 6, 2022, 6:36:02 PM10/6/22
to
On Wed, 5 Oct 2022 15:21:56 +0200, Lina Bousbina wrote:
> How can I create a PACMAN graphic with javascript?

It can be done using CSS. An empty sized element styled with colored
backgroud, border radius, rotate transformation, path clipping, and
animation.

Michael Haufe (TNO)

unread,
Oct 8, 2022, 3:17:58 PM10/8/22
to
On Wednesday, October 5, 2022 at 8:22:06 AM UTC-5, Lina Bousbina wrote:
> How can I create a PACMAN graphic with javascript?

There are some examples on CodePen of varying quality. For example:

<https://codepen.io/hellokatili/pen/xwKRmo>
0 new messages