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
3f28896c
Commit
3f28896c
authored
6 months ago
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmos: Version online
parent
eecd6aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
SeptemberGalaxy.js
StarryNights/SeptemberGalaxy.js
+14
-11
No files found.
StarryNights/SeptemberGalaxy.js
View file @
3f28896c
s0
.
initImage
(
"file:///home/pln/Work/Hydra/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg"
)
s1
.
initImage
(
"file:///home/pln/Work/Hydra/StarryNights/img/cosmos.jpg"
)
// LE COSMOS
// Par PL,
// Pour Raphael <3
// s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg")
s0
.
initImage
(
"https://git.plnech.fr/pln/Hydra/raw/eecd6aaf74b4af18af9af22a4eed8d6b201d4824/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg"
)
// s1.initImage("file:///home/pln/Work/Hydra/StarryNights/img/cosmos.jpg")
s1
.
initImage
(
"https://git.plnech.fr/pln/Hydra/raw/eecd6aaf74b4af18af9af22a4eed8d6b201d4824/StarryNights/img/cosmos.jpg"
)
src
(
s0
)
// .scale(2, 1)
.
out
(
o0
)
...
...
@@ -10,7 +16,7 @@ src(o0)
src
(
o1
)
.
mult
(
src
(
o1
)
.
scale
(()
=>
0.8
+
0.4
*
Math
.
abs
(
Math
.
sin
(
time
*
2
)
%
30
/
30
))
.
scale
(()
=>
0.8
+
1.4
*
Math
.
abs
(
Math
.
sin
(
time
/
200
)
))
.
luma
(
0.7
)
.
thresh
(()
=>
0.84
+
0.1
*
Math
.
sin
(
time
/
20
))
// , 0.7
...
...
@@ -19,23 +25,20 @@ src(o1)
// Phase 3: Que les vents célestes te portent
src
(
o2
)
.
blend
(
src
(
o1
).
scale
(
0.9
).
mask
(
shape
(
4
).
scale
(
3.3
))
.
luma
(()
=>
0.5
+
0.
15
*
Math
.
sin
(
time
*
0.65
))
,
()
=>
0.4
+
0.3
*
Math
.
sin
(
time
))
.
luma
(()
=>
0.5
+
0.
5
*
Math
.
sin
(
time
/
(
28
*
9
)
))
,
()
=>
0.4
+
0.3
*
Math
.
sin
(
time
/
28
))
.
add
(
src
(
s1
)
.
scale
(
0.1
)
.
contrast
(
0.5
)
// .mask(shape(4).scale(0.85))
.
modulate
(
// osc(1, () => 0.35 + 0.35 * Math.sin(time/2))
// osc(() => ((time / 10) % 150),0.002)
// src(o1)
noise
(()
=>
11
-
5
*
((
time
/
2000
)
%
5
),
0.01
)
noise
(()
=>
11
-
5
*
((
time
/
200
)
%
5
),
0.01
)
)
.
invert
()
.
luma
(
0.5
)
.
scale
(
3.7
)
.
mask
(
shape
(
4
).
scale
(()
=>
1
,
4
+
1.2
*
Math
.
abs
(
Math
.
sin
(
time
/
13
))))
,
()
=>
0.2
*
((
time
/
1989
)
%
10
)
.
mask
(
shape
(
4
).
scale
(()
=>
1
,
4
+
1.2
*
Math
.
abs
(
Math
.
sin
(
time
/
13
))))
,
()
=>
0.2
*
((
time
/
1989
)
%
10
)
)
.
out
(
o3
)
render
(
o3
)
...
...
This diff is collapsed.
Click to expand it.
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