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
850a3aa9
Commit
850a3aa9
authored
Oct 15, 2021
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Camille15
parent
8842b6fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
Camille15.js
StarryNights/Camille15.js
+47
-0
october-15-2019-supernova.jpg
StarryNights/img/october-15-2019-supernova.jpg
+0
-0
No files found.
StarryNights/Camille15.js
0 → 100644
View file @
850a3aa9
// On October 15 in 2003
// Supernova Remnant E0102
//
// In a nearby galaxy called the Small Magellanic Cloud,
// a massive star exploded as a supernova
// and dissipated its interior into a spectacular display of colorful filaments.
// The supernova remnant, known as E0102, is the greenish-blue field of debris just below center.
periodeTelescope
=
42
periodeModulation
=
100
periodeModulationInterne
=
1000
periodeModulationExterne
=
200000
periodeBlend
=
5
periodeBlendModulate
=
100
// DEBUG
periodeTelescope
=
10
periodeModulation
=
10
periodeModulationInterne
=
100
periodeModulationExterne
=
20000
periodeBlend
=
5
periodeBlendModulate
=
100
s0
.
initImage
(
"https://imagine.gsfc.nasa.gov/hst_bday/images/october-15-2019-supernova-remnant-e0102.jpg"
)
src
(
s0
)
.
contrast
(()
=>
1.1
+
0.2
*
Math
.
cos
(
time
/
100
))
.
out
(
o0
)
noise
(()
=>
2
+
0.15
*
(
time
/
360
),
()
=>
Math
.
cos
(
time
)
*
0.00002
).
out
(
o1
)
src
(
o0
).
modulate
(
o1
,
()
=>
(
(
time
/
periodeModulation
)
*
Math
.
cos
(
time
/
periodeModulationInterne
)
*
Math
.
sin
(
time
/
periodeModulationExterne
)
*
1
)
).
out
(
o2
)
src
(
o2
)
.
scale
(()
=>
0.991
+
0.4
*
Math
.
sin
(
time
/
periodeTelescope
))
.
modulate
(
src
(
o3
),
()
=>
0.04
*
Math
.
sin
(
time
/
periodeBlendModulate
))
.
blend
(
src
(
o3
),
()
=>
0.15
+
0.85
*
Math
.
sin
(
time
/
periodeBlend
))
.
out
(
o3
)
render
(
o3
)
StarryNights/img/october-15-2019-supernova.jpg
0 → 100644
View file @
850a3aa9
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