Colour 0.4.5 - Alpha Milestone
It is now possible to create a ~/.colour-science/colour-science.jenv
JSON file from which Colour will load environment variables from:
{
Colour 0.4.5 - Alpha Milestone
It is now possible to create a ~/.colour-science/colour-science.jenv
JSON file from which Colour will load environment variables from:
{
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Converts from *Omnifocus* *taskpaper* export to *org-mode*. | |
Examples | |
-------- | |
> python taskpaper2org.py omnifocus.txt > omnifocus.org | |
Notes |
from algorithm import parallelize | |
from benchmark import Benchmark | |
from math import min | |
from math.limit import inf | |
from python import Python | |
from tensor import Tensor, TensorSpec, TensorShape | |
from random import rand | |
from time import now | |
from utils.index import Index |
# Standard claims at https://webstore.ansi.org/preview-pages/ESTA/preview_ANSI+E1.54-2015.pdf gives [0.4254, 0.4044] | |
import colour | |
# Blackbody: 360, 780, 1nm | |
# CIE 1931 2 Degree Standard Observer: 360, 780, 1nm | |
# Method: ASTM E308 | |
print( | |
colour.XYZ_to_xy( | |
colour.sd_to_XYZ( |
<?xml version='1.0' ?> | |
<!-- | |
Why is this one giant script instead of a bunch of smaller scripts? | |
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't | |
really much of a programming language there is no easy way to use an IDE and jump between | |
includes, find usages of variables, and just generally quickly search things. It was found to | |
be easier to have a single large file that a developer can quickly jump up and down in when | |
trying to understand what the BuildGraph script is doing. |
#!/usr/bin/env python | |
""" | |
AideDD - Atlas | |
============== | |
This Python module extracts the map data from | |
`AideDD Atlas <https://www.aidedd.org/public/atlas>`__ | |
The following packages are required: |
import NodegraphAPI | |
from Katana import RenderManager | |
from Katana import Nodes3DAPI | |
renderNode = NodegraphAPI.GetNode("default") | |
camera = "/root/world/cam/render_Camera" | |
for frame in range(1001, 1072): | |
NodegraphAPI.GetNode("rootNode").getParameter("currentTime").setValue(frame,0) | |
Nodes3DAPI.RenderNodeUtil.SyncOutputPorts(renderNode) | |
RenderManager.StartRender(node=renderNode, hotRender=True, frame=frame, views=[camera], ignoreROI=True, asynch=False, interactive=False) |
[tool.poetry] | |
name = "colour" | |
version = "0.4.0" | |
description = "Colour Science for Python" | |
license = "BSD-3-Clause" | |
authors = [ "Colour Developers <colour-developers@colour-science.org>" ] | |
maintainers = [ "Colour Developers <colour-developers@colour-science.org>" ] | |
readme = 'README.rst' | |
repository = "https://github.com/colour-science/colour" | |
homepage = "https://www.colour-science.org/" |
import numpy as np | |
import colour | |
xyY = np.asarray(colour.MUNSELL_COLOURS_REAL[2000][1]) | |
# Munsell Renotation System uses C illuminant. | |
# Luminance is in range [0-100], so we need to scale it | |
# back to [0-1]. | |
XYZ = colour.xyY_to_XYZ(xyY) | |
RGB = colour.XYZ_to_sRGB( |