File:Cepheid animation 5 rend 1.gif
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionCepheid animation 5 rend 1.gif |
English: Cepheid animation (or W Wirginis of RR Lyrae animation) |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.7 source code
Ini
[Animation]
+W500 +H500 ;
Initial_Frame = 1
Final_Frame = 100
Initial_Clock =0
Final_Clock = 99.0
Pov
//
// pulsating star , cepheid w virginis or RR lyr star
// pov-ray 3.7 source
// 9.1.2022 0000.0003
//
- include "colors.inc"
camera{
location <0,0,-40>
look_at <0,0,0>
right x
up y
}
//#declare color_6800k=<0.954,0.697,1>;
//#declare color_5500k=<1,0.709,0.816>;
- declare color_5500k=<248,255,183>/255;
#declare color_6800k=<201,226,255>/255;
- declare colora=color_6800k;
- declare colorb=color_5500k;
- declare fnum=clock;
//#declare fnum=0;
- declare animax1=100;
- declare degrad=(2*pi)/animax1;
- declare fii= degrad*fnum;
//#debug str(fii);
- declare sinfii=sin(fii);
- declare cosfii=cos(fii);
- declare one_minus_cosfii=1-cosfii;
- declare kosu1=(cosfii--1)/4;
- declare kosu2=(cosfii--1)/2;
//#declare starcolor1=<0.8+(cosfii*0.19),0.5+cosfii*0.48,0>;
//#declare starcolor1=<1,kosu1,0>;
//#declare starcolor1=<1,1+kosu1*0.1,0.5+kosu1/2>;
//#declare starcolor1=<1.2,1.2*kosu1,1*kosu1> *<1,1,0.8>;
//#declare starcolor1=colorb;
- declare starcolor1=(1-kosu2)*(colorb-colora)+colora;
//#declare starcolor1=<1.2,1.2,1*(kosu1)>;
//#declare starcolor1=<2/2+1*(kosu1/4),1/3,1/3>;
//#declare starcolor2=starcolor1*0.8;
//#declare starcolor3=starcolor1*0.99;
- declare starcolor2=starcolor1;
- declare starcolor3=starcolor1;
//#declare starcolor2=<1.1+0.3*cosfii,cosfii*1.1,cosfii>;
- declare stara1=sphere{
<0,0,0>,10
texture{
pigment{
// color rgb starcolor1
granite
phase clock*5
scale 1
// scale (2+0.5*cos(fii))
pigment_map {
[0 color starcolor2]
[1 color starcolor3]
} // pig map
} // pigment
finish{
// ambient 1
ambient (1+kosu2)
}
}
texture {
pigment{
wrinkles
// granite
phase clock
// scale 6
color_map {
[0 color rgbt <0,0,0,1>]
[0.8 color rgbt <0,0,0,1>]
[0.7 color rgbt <1,1,1,0.95>]
[1 color rgbt <1,1,1,0.5>]
}
}
}
// object scale
// scale 0.75+(one_minus_cosfii*0.25)
scale 0.8+(one_minus_cosfii*0.4)
}
- declare fadi1=4*(1+kosu1);
union {
object {
sphere {0,11/100 }
pigment {
wrinkles
//agate
// granite
scale 1/1000
// scale 0.5*100
color_map {
[0 color rgb 0]
[0.55 color rgb 0]
[0.55 color rgbt 1]
[1 color rgbt 1]
}
}
}
light_source {
<0,0,0>, 1
looks_like { stara1 }
fade_distance fadi1
fade_power 4
}
/*
light_source {
<0,0,0>, 1
spotlight
point_at <0,0,-100>
radius 60
falloff 70
fade_distance fadi1*10
fade_power 2
}
*/
}
media {
absorption 0.0000000001
//scattering {3,10/1000000000*starcolor3 extinction 0.00000000000001}
scattering {3,6/10000000*starcolor3 extinction 0.00000000000001}
density {
granite
scale 1/10
color_map {
[0 color rgbt 0]
// [0.55 color rgb 0]
// [0.55 color rgbt 1]
[1 color rgbt 1]
}
}
}
Python
- calculate color from temperature
- python 3 code
import numpy as np
import matplotlib.pyplot as plt
import math
import Color_Match as cm
- tcolor1=6800
tcolor1=5500
sv = cm.sense_vector(cm.planck_spectrum(tcolor1))
relative_intensities = cm.rgb_composition(623e-9, 528e-9, 470e-9, sv)
full_brightness_limit = 255
desired_brightness = 0.5
absolute_rgb_levels = (desired_brightness * full_brightness_limit) * relative_intensities
absolute_rgb_levels2 = (1 * 1) * relative_intensities
print(absolute_rgb_levels)
print(absolute_rgb_levels2)
print(relative_intensities)
Licensing



- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Captions
Items portrayed in this file
depicts
9 January 2023
image/gif
1f00f715aca70dfebee2aae64c848525b8f88f0c
3,690,682 byte
4.99999999999999 second
500 pixel
500 pixel
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:18, 9 January 2023 | ![]() | 500 × 500 (3.52 MB) | Merikanto | Uploaded own work with UploadWizard |
File usage
The following page uses this file:
Global file usage
The following other wikis use this file:
- Usage on la.wikipedia.org
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
GIF file comment | Created with ezgif.com GIF maker |
---|