Compare commits

...

4 Commits

Author SHA1 Message Date
Tonton Th
1c2a4f9be2 tweaks... 2025-10-18 16:15:59 +02:00
Tonton Th
fd7c2fe707 La Chose est maintenant une macro 2025-10-18 16:14:59 +02:00
Tonton Th
3eae9b7308 making gif89a NOW ! 2025-10-18 16:13:10 +02:00
Tonton Th
b324d4a5df increase font size 2025-10-18 11:30:06 +02:00
4 changed files with 47 additions and 20 deletions

View File

@ -9,8 +9,8 @@
* une idée à creuser davantage...
*/
#declare Chose = object
{
#macro Chose () // = object
merge {
difference {
cone { -1.2*y, 0.81, 0.2*y, 1.12 }
@ -25,17 +25,17 @@ merge {
cylinder { 0, <C2X, H, C2Z>, R }
sphere { <C2X, H, C2Z>, R }
#end
}
#if (rand(Rng1) < 0.225)
texture { tPlasticOrange }
#else
texture { Ruby_Glass }
#end
#if (rand(Rng1) < 0.42)
texture { tPlasticOrange }
#else
texture { Ruby_Glass }
#end // if
scale <0.62, 0.5, 0.61>
rotate -y*clock
translate y*1.20
}
scale <0.62, 0.5, 0.61>
rotate -y*clock
translate y*1.10
}
#end // macro
/* ======================================================= */
#declare Horloge = object

View File

@ -11,7 +11,7 @@ global_settings {
#include "stones.inc"
#include "woods.inc"
#declare Rng1 = seed(1337);
#declare Rng1 = seed(1234);
#declare foo = rand(Rng1);
#declare Rng2 = seed(now*24*60*60);
#declare bar = rand(Rng2);
@ -48,8 +48,8 @@ global_settings {
#declare WIP_color = texture
{
pigment { color Cyan*0.55 }
finish { phong 0.23 }
pigment { color Cyan*NormClock }
finish { phong 0.23 ambient 0.50 }
}
#declare T_WIP_alert = texture
@ -61,15 +61,16 @@ finish { ambient 1 specular 0.80 }
#declare T_Planete_A = texture
{
pigment { color rgb <0.20, 0.30, 0.10> }
normal { dents 0.38 scale 0.5}
normal { dents 0.28 scale 0.5}
finish { phong 0.70 reflection 0.05 }
}
#declare T_Planete_B = texture
{
pigment { rgb <0.42, 0.50, 0.70> }
normal { dents 0.14 scale 0.5}
finish { metallic 0.50 reflection 0.33 }
}
/* ------------------------------------------------------------ */
/*
* deux textures pour faire des batiments
*/
@ -86,7 +87,7 @@ pigment { color <0.7, 0.6, 0.5> }
normal { dents 0.25 scale 3 }
finish { roughness 1.00 }
}
/* ------------------------------------------------------------ */
#declare tPlasticOrange = texture
{
pigment{rgb <2.000, 0.50, 0.0>}
@ -133,7 +134,7 @@ finish {
}
} // This is a metal.
/* ------------------------------------------------------------ */
/* ============================================================ */
/*
* Usefull macros
*/

26
tools/build-gif89a.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -eu
# retour aux vieilles pratiques : la Gif animée.
# c'est une nouveauté du 18 octobre 2025
SEQ="essai"
if [ $# == 1 ] ; then
SEQ=$1
fi
GIF="t-$SEQ.gif"
echo "seq $SEQ -> $GIF" | tee -a WS/log
convert \
-delay 10 -dither none \
-resize 40% \
-colorspace gray -equalize \
-colors 15 \
frames/$SEQ/?[012]*[369].png \
$GIF

View File

@ -42,7 +42,7 @@ do
# echo $frame $img $txt
convert ${TMPIMG} \
-font Courier-Bold \
-pointsize 11 \
-pointsize 14 \
-kerning 4 \
-fill ${TEXTCOL} \
-gravity north \