Comments (2)
The fix here, is by changing the calculation of the theta in a Fibonacci sample point (https://observablehq.com/@mbostock/spherical-fibonacci-lattice) from:
i / Φ * 2π
- → mod by
2π
:i / Φ * 2π % 2π
- → mod by
1
:i / Φ % 1 * 2π
- → scale it up a bit and use
floor
:(i / Φ - 3000 * floor(i / Φ / 3000)) * 2π
To reduce the precision loss caused by sin
and mod
.
from cobe.
https://twitter.com/shuding_/status/1470068674560155650 :)
from cobe.
Related Issues (20)
- draggable & rotate-to-location with Vanilla js HOT 4
- Why does my site slow down
- Auto rotate something like blink HOT 2
- the package is not wroking with vue2 / nuxt js. HOT 6
- Cobe's playground https://cobe-playground.vercel.app/ broken on Chrome. HOT 1
- Unique marker colors HOT 3
- Increased recalculations per second (+CPU usage etc.) when used with other animations HOT 2
- Wrong Page Redirect in Draggable and Rotate Showcase
- Cannot read properties of `null` (reading 'enable') - When hardware acceleration is disabled HOT 2
- Earth drawing error
- Link to source on `draggable-and-rotate.mdx` links to `draggable.mdx` instead of `draggable-and-rotate.mdx` HOT 2
- docs: improve examples by adding removeEventListener to resize events HOT 1
- Performance issues on Windows HOT 3
- Dots disappeared on Africa HOT 1
- Separate Customization of Globe and Dot Colors
- Issue with dots display
- White flash on page load (noticeable only on black/dark backgrounds) HOT 2
- Map layer
- map's dot not display on phone HOT 1
- Svelte Globe Example - Auto Rotate & Draggable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobe.