mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
Write the range ring's band a word a pixel and place fronts without angles
The band is copied out of its radius table as whole 32-bit pixels where the image's bytes line up with words, a byte at a time where they do not. Each front's positions come from the unit vector on the sphere straight to the ellipsoid, without going through longitude and latitude and back; they move by nanometres.
This commit is contained in:
1 parent
d2627b466a
commit
73735b080a
2 files changed
+49
-9
No files matched your search
@@ -1120,6 +1120,14 @@ test('a band painted with a kept memo is the band painted afresh, step after ste
|
||||
const expected = fresh();
|
||||
paintAwarenessBand(expected, { ...band, rgb: [1, 0, 0] });
|
||||
assert.equal(firstMismatch(image.data, expected.data), -1, 'repainted');
|
||||
// Bytes that do not line up with whole words are painted a byte at a
|
||||
// time, the same.
|
||||
const odd = {
|
||||
width: size,
|
||||
data: new Uint8ClampedArray(new ArrayBuffer(size * size * 4 + 1), 1),
|
||||
};
|
||||
paintAwarenessBand(odd, { ...band, rgb: [1, 0, 0] }, memo);
|
||||
assert.equal(firstMismatch(odd.data, expected.data), -1, 'unaligned');
|
||||
});
|
||||
|
||||
test('the band is one flat unpickable ellipse at the rim, drawn anew each step about the subject', (t) => {
|
||||
|
||||
Reference in new issue
Block a user