Skip to content

Instantly share code, notes, and snippets.


Thomas Mansencal KelSolaar

Block or report user

Report or block KelSolaar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# -*- coding: utf-8 -*-
Mock for Colour
Defines various objects for mocking to use with
`Colour <>`_.
KelSolaar / Dockerfile
Last active Jul 17, 2019
ociolutimage - Docker Wrapper
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y \
build-essential \
git \
freeglut3-dev \
libglew-dev \
libilmbase-dev \
View cheatsheet.rst
KelSolaar / Pinboard.scpt
Created Mar 9, 2019 — forked from itst/Pinboard.scpt
Import and update your Pinboard bookmarks to DEVONthink
View Pinboard.scpt
(* Import and update your Pinboard bookmarks to DEVONthink
Based on work done by Christian Grunenberg on Mon Jan 23 2006,
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished.
By Sascha A. Carlin <> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items
Copyright (c) 2018. All rights reserved. *)
use framework "Foundation"
KelSolaar /
Created Jan 31, 2019
Contrast Sensitivity Function - Barten (1999)
# %%
from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
from colour.utilities import as_float_array
from colour.plotting import colour_style, plot_single_function
KelSolaar /
Created Jan 24, 2019
LaTeX - Add Labels
import codecs
import fnmatch
import os
import re
def _sanitize_filename(filename):
Sanitizes given filename.
KelSolaar /
Last active Jan 18, 2019
Inkscape - macOs - Absolute Path Wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Inkscape - macOs - Absolute Path Wrapper
On *macOs*, *Inkscape* requires absolute paths to work::
KelSolaar /
Last active Jul 18, 2019
Colour 0.3.14 - Current Changes

Colour 0.3.14 - Alpha Milestone

Coverage was raised to 100% which is about 25K lines covered, it obviously does not mean that all the possible code paths are covered but it certainly strengthen the API.

Imageio is now a requirement for reading and writing images.

Various colour component transfer functions objects have been either renamed or their signature changed, most notably the sRGB transfer functions and the colour.oetf definition.

All the reverse words have been replaced with inverse in object names, file names, docstrings.

KelSolaar /
Last active Jun 27, 2019
Recommended Values for Use in Colour Examples and Unit Tests
KelSolaar /
Last active Oct 12, 2018
Mitsuba - Shader Balls
for name, spd in SPDS.items():
prefix = ''.join([token.title() for token in])
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}, filename, delimiter=' ')
with open(filename, 'r') as csv_file:
You can’t perform that action at this time.