-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
greweb
committed
Oct 19, 2023
1 parent
268a838
commit ef5ba1c
Showing
31 changed files
with
3,056 additions
and
549 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
max_width = 80 | ||
tab_spaces = 2 |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Plottable Pipes | ||
|
||
Plottable Pipes explores industrial human structures that pierce into the mountains. | ||
|
||
Each NFT is a recipe to a physical plot (A4), owners can unlock a physical plot directly coming from @greweb's pen plotter. | ||
|
||
For those interested in the technical details, this work was created using WebGL + Rust + WASM and is licensed under CC BY-SA 4.0. Additional information and the source code for this piece can be found at this link: https://github.com/gre/gre/tree/master/doodles/plottable-pipes | ||
|
||
<!-- | ||
plottable, plot, A4, physical, phygital, irl, rust, wasm, pipes, mountains | ||
ooW1XwoAAC46U8yYkKgwoqYDGhXr58ihU1NP15pT5rSFoh1Yyqi | ||
--> | ||
|
||
## Theorical distribution | ||
|
||
``` | ||
Inks distribution: | ||
Gold Gel, White Gel : 77.4% | ||
White Gel : 15.8% | ||
Gold Gel, Green Gel, White Gel : 2% | ||
Gold Gel, Red Gel, White Gel : 1.6% | ||
Green Gel, White Gel : 0.8% | ||
Blue Gel, Gold Gel, White Gel : 0.8% | ||
Gold Gel, Orange Gel, White Gel : 0.6% | ||
Blue Gel, White Gel : 0.6% | ||
Red Gel, White Gel : 0.4% | ||
Inks count distribution: | ||
2 : 79.2% | ||
1 : 15.8% | ||
3 : 5% | ||
Paper distribution: | ||
Black : 100% | ||
Pipes distribution: | ||
Some : 48.2% | ||
Many : 36% | ||
A lot : 7% | ||
Two : 6.2% | ||
One : 2.6% | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const height = 297; | ||
export const width = 210; | ||
export const pad = 10; | ||
|
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { useMemo } from "react"; | ||
import useDimensions from "react-cool-dimensions"; | ||
import ReactDOM from "react-dom"; | ||
import Main from "./index"; | ||
|
||
const viewportStyle = { | ||
position: "absolute", | ||
width: "100vw", | ||
height: "100vh", | ||
display: "flex", | ||
flexDirection: "column", | ||
}; | ||
|
||
function setFeatures(features) { | ||
$fx.features(features); | ||
} | ||
|
||
function Root() { | ||
const { width, height, observe } = useDimensions({}); | ||
|
||
return ( | ||
<div ref={observe} style={viewportStyle}> | ||
<Main | ||
width={width || window.innerWidth} | ||
height={height || window.innerHeight} | ||
hash={$fx.hash} | ||
setFeatures={setFeatures} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
ReactDOM.render(<Root />, document.getElementById("main")); |
Oops, something went wrong.