-
Generate a
p5.min.js
file containing changes vianpm run grunt
-
Add the new
p5.min.js
file to the docs directory by using./copyfiles.sh
-
Steps 1 & 2 can be done as one-liner:
npm run grunt && ./copyfiles.sh
- Switch to
main
ormaster
branch in local repogit checkout main
orgit switch main
- Fetch and merge changes from origin
git pull origin main
Sources
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
varying vec3 vVertexColor; | |
void main () | |
{ | |
gl_FragColor = vec4( vVertexColor, 1.0 ); | |
} |
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
outputFile = "" | |
byts = [] | |
with open( outputFile, 'wb' ) as file: | |
file.write( bytes( byts ) ) |
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
=begin | |
(c) TIG 2011 | |
http://sketchucation.com/forums/viewtopic.php?t=33956 | |
Type exportvertices2csv in the Ruby Console. | |
Exports all Vertices is a Selection to a X,Y,Z 'CSV' file. | |
Edit sep="," if something other than a separating comma is desired e.g. ';' | |
Make sep="\t" if a TSV file is desired and change ext="csv" to ext="tsv". | |
It uses the current Model Units/accuracy with the approximate '~ ' and | |
unit suffix [if any] removed; e.g. change Model Units to 'meters' 3dp to | |
get exported csv in meters 1.234 - don't use 'fraction' 1' 2 1/2" formats, |
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
import time | |
start = time.time() | |
# call function | |
elapsedTime = round( ( time.time() - start ), 3 ) | |
print(elapsedTime, "seconds") |
NewerOlder