Colour 0.4.7 - Alpha Milestone
- Implement support for Li (2025) chromatic adaptation transform with
colour.chromatic_adaptation_Li2025
definition. (#1349, #1356, @UltraMo114, @KelSolaar, Claude Code)
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Inkscape - macOs - Absolute Path Wrapper | |
======================================== | |
On *macOs*, *Inkscape* requires absolute paths to work:: | |
https://answers.launchpad.net/inkscape/+question/280575 |
Colour 0.4.7 - Alpha Milestone
colour.chromatic_adaptation_Li2025
definition. (#1349, #1356, @UltraMo114, @KelSolaar, Claude Code)import numpy as np | |
import colour | |
np.set_printoptions(formatter={'float': '{:0.8f}'.format}, threshold=np.nan) | |
print('Recommended Values for Use in Colour Examples and Unit Tests') | |
print() | |
print('Illuminants "xy"') | |
print() |
for name, spd in SPDS.items(): | |
prefix = ''.join([token.title() for token in spd.name.split()]) | |
prefix = prefix.replace('.', '_') | |
prefix = prefix.replace('(', '_') | |
prefix = prefix.replace(')', '_') | |
filename = '/Users/kelsolaar/Google Drive/Cinematic Color Update/Supporting Documents/Spectral/ShaderBalls/ColorChecker N Ohta/{0}.spd'.format(prefix) | |
colour.write_spds_to_csv_file({spd.name: spd}, filename, delimiter=' ') | |
with open(filename, 'r') as csv_file: |
def face_mask( | |
quad=False, | |
material=False, | |
face_uvs=False, | |
face_vertex_uvs=False, | |
face_normals=False, | |
face_vertex_normals=False, | |
face_colours=False, | |
face_vertex_colours=False, |
import bpy | |
from colour.models import RGB_COLOURSPACES, RGB_to_XYZ, \ | |
XYZ_to_colourspace_model | |
def RGB_identity_cube(subdivisions=32): | |
bpy.ops.mesh.primitive_cube_add(location=(0.5, 0.5, 0.5)) | |
bpy.ops.transform.resize(value=(0.5, 0.5, 0.5)) | |
bpy.ops.object.transform_apply(location=True, scale=True) |
wavelength | HeNe Laser | |
---|---|---|
301.2475431 | 121.7295551 | |
303.5565712 | 123.2564968 | |
305.8655993 | 120.5549846 | |
308.1746274 | 122.0819263 | |
310.4836555 | 120.9073557 | |
312.7926836 | 120.7898987 | |
315.1017117 | 120.3200705 | |
317.4107398 | 121.377184 | |
319.719768 | 121.8470122 |
#!/usr/bin/env bash | |
# Container Information | |
CONTAINER_IMAGE="nginx:latest" | |
CONTAINER_NAME="nginx" | |
# Container Run Command | |
run-container() { | |
docker run \ | |
-d \ | |
--restart always \ |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
set cut_paste_input [stack 0] | |
version 10.5 v2 | |
push $cut_paste_input | |
Expression { | |
temp_name0 cutInv | |
temp_expr0 0.181 | |
temp_name1 b_ | |
temp_expr1 0.00873 | |
temp_name2 c | |
temp_expr2 0.241514 |