Author: _wb_
Title: JXL
File size: 352 bytes
File type: JPEG XL  (image/jxl)
Date: September 3rd, 2022
Resolution: 2048x1152
Bit depth: 9-bit

jxl_from_tree source code:
(requires this version of jxl_from_tree: https://github.com/libjxl/libjxl/pull/1833)


/* Background layer: Weighted predictor cloudy stuff with some noise added */
Width 1024
Height 576
Upsample 2
Bitdepth 9
Alpha
NotLast
Noise 0.1 0.05 0.05 0.05 0.05 0.05 0.05 0.0
RCT 13

if c > 2
 - Set 511
 if c > 1
   if y > 0
     - NW 1
     - N -1
   if y > 432
     if WGH > 0
       - AvgN+NE -3
       - AvgN+NW -1
     if c > 0
       if y > 0
         - N 2
         - Set -500
       if y > 30
         if N > 300
           - AvgW+NW -300
           if N > -50
             if WGH > -3
               - AvgN+NE 7
               - AvgN+NW -3
             - AvgN+NW 100
         if W > -200
           - Weighted -2
           - Select 350

/* Overlay 1: a spline of light that will go around the JXL logo */
FramePos 512 164
Upsample 1
BlendMode kAdd
NotLast

Spline
   0 -0.3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   0.7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   0.8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   2.0 1.0 -0.3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   20 48
   992 128
   128 196
   880 256
   220 320
   832 384
   128 448
   920 512
   64 544
EndSpline


RCT 0
- Set 0



/* Overlay 2: Sierpinski-ish triangles to go below the JXL logo */

FramePos 512 640
Upsample 1
BlendMode kBlend
NotLast
RCT 0

if c > 2
if y > 0
if N > 0
  if NW-N > -1
       if N-NE > 0
         - Set 0
         - N + 0
       if N-NE > 0
         - N + 0
         - Set 0
 if NW-N > 0
       if N-NE > -1
         - NW + 0
         - Set 0
       if N-NE > -1
         - Set 0
         - Set 280



 if x > 511
     - Set 1
     - Set 0
- W 1


/* Overlay 3: a JXL logo */

FramePos 512 164
Upsample 1
GroupShift 3
BlendMode kBlend
NotLast
RCT 13

if c > 2
 if y > 0
   if y > 336
     if x > 510
       if x > 511
         - NW 0
         if y > 383
           - Set 0
           - N -10
       - NE 0
     if x > 511
       - NE + 0
       - NW + 0
   if x > 1022
     - Set 0
     if x > 928
       - W 10
     if x > 927
       - Set -450
       if x > 895
         - Set 0

         if x > 801
         - W 10
         if x > 800
           - Set -450
           if x > 223
             - Set 0
             if x > 128
               - W -10
             if x > 127
               - Set 500
               if x > 95
                 - Set 0
                 if x > 1
                  - W -10
                  if x > 0
                   - Set 500
                   - Set 0

 if c > 0
   if x > 0
     - W 1
     - W -1

if y > 0
- N 3
- Set -560


/* Overlay 4: a signature (JS) in the bottom right */

FramePos 1860 950
BlendMode kAdd
Upsample 1

Spline
   3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   1.0 0.3 -0.3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
   40 75
   55 70
   55 160
   10 150
   70 130
   110 120
   40 100
   120 80
EndSpline


RCT 0
- Set 0