-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several additions to controls and refactoring.
- Loading branch information
clodomir vianna da silva neto
committed
Jul 2, 2024
1 parent
77db7e1
commit b65db3f
Showing
14 changed files
with
601 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import obj from "./objects.js"; | ||
export default { | ||
scale: 1, | ||
clipPositionX: 0, // float randing from -1 to 1 | ||
clipPositionY: 0, // float randing from -1 to 1 | ||
width_in_pixels: window.innerWidth, // canvas/screen space width | ||
height_in_pixels: window.innerHeight, // canvas/screen space width | ||
clipPositionX: 0, // float ranging from -1 to 1 | ||
clipPositionY: 0, // float ranging from -1 to 1 | ||
width_in_pixels: window.innerWidth / 3.5, // canvas/screen space width | ||
height_in_pixels: window.innerHeight / 2, // canvas/screen space width | ||
canvas: $('#demo-canvas')[0], | ||
shape: new obj.Shape(obj.triangleVertices, obj.rgbTriangleColors), | ||
shape: new obj.Shape([], []), | ||
circle_segment_count: 8, | ||
circle_center: [0, 0] // float ranging from -1 to 1 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import obj from "./objects.js" | ||
import obj from "./objects.js"; | ||
import geometry from "./geometry.js"; | ||
|
||
export default { | ||
|
||
scale: 1, | ||
clipPositionX: 0, // float randing from -1 to 1 | ||
clipPositionY: 0, // float randing from -1 to 1 | ||
width_in_pixels: window.innerWidth, // canvas/screen space width | ||
height_in_pixels: window.innerHeight, // canvas/screen space width | ||
clipPositionX: 0, // float ranging from -1 to 1 | ||
clipPositionY: 0, // float ranging from -1 to 1 | ||
width_in_pixels: window.innerWidth / 3.5, // canvas/screen space width | ||
height_in_pixels: window.innerHeight / 2, // canvas/screen space width | ||
canvas: $('#demo-canvas')[0], | ||
shape: new obj.Shape(obj.triangleVertices, obj.rgbTriangleColors), | ||
shape: new obj.Shape([], []), | ||
circle_segment_count: 8, | ||
circle_center: [0, 0] // float ranging from -1 to 1 | ||
|
||
} | ||
} |
Oops, something went wrong.