-
Archives
- March 2024
- July 2023
- January 2023
- August 2022
- January 2022
- September 2021
- July 2021
- June 2021
- October 2020
- October 2019
- September 2019
- January 2017
- March 2016
- December 2014
- September 2013
- August 2013
- June 2013
- July 2012
- December 2011
- March 2011
- December 2010
- November 2010
- August 2010
- April 2010
- March 2010
- February 2010
- January 2010
- October 2009
- July 2009
- June 2009
- April 2009
- March 2009
- January 2009
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- April 2008
- March 2008
-
Meta
Monthly Archives: April 2008
Storing Colours in 31 bits (Part 2)
Jean-Baptiste Rouquier rose to the challenge in my last post: to provide a fast way of storing premultiplied colours in OCaml’s 31bit integers (see his post here). With his kind permission, I’ve included this code (somewhat optimized) in the Colour … Continue reading
A Simple Parser with Genlex
(If you’re reading this via the OCaml planet, click the post title to see it with proper formatting – I shall fix this problem for the next post, I hope.) When calling our command line PDF Tools to, for instance, … Continue reading
Storing Colours in 31 bits (Part One)
For rendering vector graphics scenes, colours are usually stored with what we call “premultiplied” or “associated” alpha. For instance, opaque dark red is stored as: 0.5, 0, 0, 0.5 (R * A, G * A, B * A, A) instead … Continue reading
A Proper GUI for OCaml (Part Two)
I’ve packaged up the basic libraries described last time and you can get them here, together with a little example. It should work on any platform / toolchain where OCaml and Python and WxPython can be installed. It allows you … Continue reading