Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
Hydra
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Hydra
Commits
6488541c
Commit
6488541c
authored
Aug 14, 2024
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tom: Add ascii art
parent
b185fb37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
14 deletions
+87
-14
tom.js
opal/tom.js
+87
-14
No files found.
opal/tom.js
View file @
6488541c
s0
.
initImage
(
"file:///home/pln/Work/Hydra/StarryNights/img/august-10-2019-nebula-ngc-2074.jpg"
)
// ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓████████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░
s1
.
initImage
(
"file:///home/pln/Work/Hydra/opal/opal.jpeg"
)
// ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
s2
.
initImage
(
"file:///home/pln/Work/Hydra/opal/opal2.jpeg"
)
// ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
// ░▒▓█▓▒▒▓███▓▒░▒▓████████▓▒░▒▓█▓▒░ ░▒▓████████▓▒░░▒▓██████▓▒░░▒▓█▓▒░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░░▒▓████████▓▒░▒▓█▓▒░
// ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
// ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
// ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓████████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░
// On August 10 in 2008
// Par Paul-Louis, pour Tom, afin qu'à son tour il se régale un peu <3
// Nebula NGC 2074
// The nebula NGC 2074 is a firestorm of raw stellar creation, perhaps triggered by a nearby supernova explosion.
// It lies in a nearby galaxy called the Large Magellanic Cloud, about 170,000 light-years away.
// Photo prise par Hubbles le 11 Août 2008, de la Nebula NGC 2074
// "La nébuleuse NCG 2074 est une tempête de flammes de création stellaire pure, peut-être déclenchée par une exposion de supernova proche.
// Elle repose dans une galaxie proche appelée les Nuages de Magellan, à 170 000 années lumières de la Terre."
// s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/august-10-2019-nebula-ngc-2074.jpg")
s0
.
initImage
(
"https://git.plnech.fr/pln/Hydra/raw/c4bdfe763713f6eac92f474b4cd815f840e92dbf/StarryNights/img/august-10-2019-nebula-ngc-2074.jpg"
)
// s1.initImage("file:///home/pln/Work/Hydra/opal/opal.jpeg")
s1
.
initImage
(
"https://git.plnech.fr/pln/Hydra/raw/c4bdfe763713f6eac92f474b4cd815f840e92dbf/opal/opal.jpeg"
)
// s2.initImage("file:///home/pln/Work/Hydra/opal/opal2.jpeg")
s2
.
initImage
(
"https://git.plnech.fr/pln/Hydra/raw/c4bdfe763713f6eac92f474b4cd815f840e92dbf/opal/opal2.jpeg"
)
//
// La nebuleuse, en mouvement dans les étoiles
// La nebuleuse, en mouvement dans les étoiles
//
src
(
s0
)
src
(
s0
)
.
scroll
(
-
0.1
,()
=>
0.1
+
0.05
*
Math
.
sin
(
time
/
22
))
.
scroll
(
-
0.1
,()
=>
0.1
+
0.05
*
Math
.
sin
(
time
/
22
))
.
scale
(
1.7
,
0.9
)
.
scale
(
1.7
,
0.9
)
.
add
(
noise
(
400
,
()
=>
0.3
+
0.001
*
Math
.
sin
(
time
)).
thresh
(()
=>
0.8
+
0.15
*
Math
.
sin
(
time
/
40
)))
.
add
(
noise
(
400
,
()
=>
0.3
+
0.001
*
Math
.
sin
(
time
)).
thresh
(()
=>
0.8
+
0.15
*
Math
.
sin
(
time
/
40
)))
.
out
(
o0
)
.
out
(
o0
)
//
// Opal 2024,
// Opal 2024, brillant de mille feux
//
src
(
s1
)
src
(
s1
)
.
repeatY
(()
=>
5
+
2
*
Math
.
cos
(
time
/
300
))
.
repeatY
(()
=>
5
+
2
*
Math
.
cos
(
time
/
300
))
.
modulate
(
osc
(
2
,
0.05
))
.
modulate
(
osc
(
2
,
0.05
))
.
diff
(
noise
(
10
).
thresh
(()
=>
0.75
+
0.25
*
Math
.
sin
(
time
/
20
)))
.
diff
(
noise
(
10
,
0.02
).
thresh
(()
=>
0.75
+
0.25
*
Math
.
sin
(
time
/
20
)))
.
luma
(()
=>
0.5
+
0.4
*
Math
.
sin
(
time
/
20
%
360
))
.
luma
(()
=>
0.5
+
0.4
*
Math
.
sin
(
time
/
20
%
360
))
.
out
(
o1
)
.
out
(
o1
)
//
src
(
s2
).
repeatY
(()
=>
10
+
5
*
Math
.
sin
(
time
/
10
)).
brightness
(
-
0.25
+
0.25
*
Math
.
sin
(
time
)).
out
(
o2
)
// Nos fils individuels, tissés ensemble en l'étoffe dont sont faits les rêves
//
src
(
s2
).
repeatY
(()
=>
10
+
5
*
Math
.
sin
(
time
/
40
)).
brightness
(
-
0.25
+
0.25
*
Math
.
sin
(
time
)).
out
(
o2
)
// L'oéuvre finale : la galaxie Opal, qui en ce 10 Aout célèbre une révolution stellaire de Tom <3
src
(
o0
)
src
(
o0
)
.
add
(
src
(
o2
),
()
=>
0.3
+
0.3
*
Math
.
sin
(
time
/
93
))
.
add
(
src
(
o2
),
()
=>
0.3
+
0.3
*
Math
.
sin
(
time
/
93
))
.
mult
(
src
(
o1
),
()
=>
0.5
+
0.45
*
Math
.
sin
(
time
/
10
))
.
mult
(
src
(
o1
),
()
=>
0.5
+
0.45
*
Math
.
sin
(
time
/
10
))
.
out
(
o3
)
.
out
(
o3
)
render
(
o3
)
render
(
o3
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment