# biotrump/colorspace

> colorspace can be used either as part of a C/C++ program or compiled as a MATLAB MEX function.  To demonstrate colorspace for use in C programs, a small command line program colorcalc is included. The program is compiled with GCC by  gcc colorcalc.c colorspace.c -lm -o colorcalc  This should produce a command line program colorcalc that converts input sRGB values to other representations.  For use in MATLAB, colorspace is compiled as a MEX function by entering  mex colorspace.c  on the MATLAB command console. For MEX compiling to work, your system must have a C compiler and MATLAB must be configured to use it. For more information, see the help documentation for the mex command.  As an alternative to MEX, a pure M-code version colorspace.m is also included.

- **Canonical URL**: https://githubrepo.cloud/repo/biotrump/colorspace
- **GitHub Repository**: https://github.com/biotrump/colorspace
- **Maintainer / Creator**: https://github.com/biotrump
- **Discovered On**: Oct 20, 2026

---
*Indexed by GitHubRepo (https://githubrepo.cloud). Real-time open-source discovery & telemetry.*
