metafizzy / metafizzy/zdog

Use degrees instead of radians.

Open
#34 5 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
10.7k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

I think it's more familiar and user friendly to rotate elements using degrees.

Is it possible to set an optional global variable like `Zdog.useDegrees = true;`.

Then any value passed to a `rotate `property is converted to degrees (currently I have to use my own conversion function).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how rotate properties are consumed and how angles are currently interpreted. Define the optional global switch and verify that enabled rotation values use degrees while the default behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.