Skip to content

Commit

Permalink
1.1.0.3 update
Browse files Browse the repository at this point in the history
New Features:
----------------
+ Added Additive Colour Mixer VI
+ Added Subtractive Colour Mixer VI
+ Added RGB Luminosity VI
+ Added Colour to Greyscale VI
+ Added Invert Colour VI
  • Loading branch information
fisothemes committed Jun 4, 2023
1 parent 3c53bea commit 09c7597
Show file tree
Hide file tree
Showing 25 changed files with 127 additions and 50 deletions.
51 changes: 13 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LabVIEW Colour Lab
A LabVIEW toolkit for fast and simple RGB, HSV, HSL, CMYK, HEX or DEC colour manipulation
A LabVIEW toolkit for colour manipulation.

**The Project includes the following tools/VIs:**

Expand All @@ -18,48 +18,23 @@ A LabVIEW toolkit for fast and simple RGB, HSV, HSL, CMYK, HEX or DEC colour man
- [x] RGB to Colour
- [x] RGB to HSL
- [x] RGB to HSV
- [x] Additive Colour Mixer
- [x] Subtractive Colour Mixer
- [x] RGB Luminosity
- [x] Colour to Greyscale
- [x] Invert Colour


<sub>Note: Colour can be represented as a DEC or HEX in LabVIEW</sub>

# Minimum Requirements
* LabVIEW 2018 (32/64 bit)

# Code Snippets

**Benchmarks:**

![RGB to HSV Benchmark](./assets/images/RGB-to-HSV-Benchmark.png)
![HSV to Colour Benchmark](./assets/images/HSV-to-Colour-Benchmark.png)
- - - -

**Colour to RGB:**

![Colour to RGB Block Diagram](./assets/images/Colour-to-RGB-Block-Diagram.png)
- - - -
**RGB to Colour:**

![RGB to Colour Block Diagram](./assets/images/RGB-to-Colour-Block-Diagram.png)
- - - -
**HSV to RGB:**

![HSV to RGB Block Diagram](./assets/images/HSV-to-RGB-Block-Diagram.png)

<sub>*Equation located on [www.rapidtables.com](https://www.rapidtables.com/convert/color/hsv-to-rgb.html) </sub>
- - - -
**RGB to HSV:**

![RGB to HSV Block Diagram](./assets/images/RGB-to-HSV-Block-Diagram.png)

<sub>*Equation located on [www.rapidtables.com](https://www.rapidtables.com/convert/color/rgb-to-hsv.html) </sub>
- - - -
**HSL to RGB:**
* LabVIEW 2018 (32/64 bit) and above

![HSV to RGB Block Diagram](./assets/images/HSL-to-RGB-Block-Diagram.png)

<sub>*Equation located on [www.rapidtables.com](https://www.rapidtables.com/convert/color/hsl-to-rgb.html) </sub>
- - - -
**RGB to HSL:**
# Showcase
![showcase](./assets/images/showcase.png)

![RGB to HSV Block Diagram](./assets/images/RGB-to-HSL-Block-Diagram.png)
# Example

<sub>*Equation located on [www.rapidtables.com](https://www.rapidtables.com/convert/color/rgb-to-hsl.html) </sub>
![colour manipulation](./assets/images/image-colour-manipulation.fp.png)
![colour manipulation](./assets/images/image-colour-manipulation.bd.png)
Binary file added assets/images/image-colour-manipulation.bd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/image-colour-manipulation.fp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/showcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
13 changes: 12 additions & 1 deletion src/Colour Lab Library/Colour Lab.lvlib

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/Benchmark Tests.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/CMYK to Colour.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/Colour to CMYK.vi
Binary file not shown.
Binary file added src/Colour Lab Library/VIs/Colour to Greyscale.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/Colour to HSL.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/Colour to HSV.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/Colour to RGB.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/HSL to Colour.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/HSV to Colour.vi
Binary file not shown.
Binary file added src/Colour Lab Library/VIs/Invert Colour.vi
Binary file not shown.
Binary file added src/Colour Lab Library/VIs/Luminosity to ASCII.vi
Binary file not shown.
Binary file added src/Colour Lab Library/VIs/RGB Luminosity.vi
Binary file not shown.
Binary file modified src/Colour Lab Library/VIs/RGB to Colour.vi
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions src/Colour Lab.lvproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,24 @@
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="Playground" Type="Folder">
<Item Name="Play.vi" Type="VI" URL="../Playground/Play.vi"/>
</Item>
<Item Name="Examples" Type="Folder">
<Item Name="Image colour manipulation.vi" Type="VI" URL="../Example/Image colour manipulation.vi"/>
</Item>
<Item Name="Colour Lab.lvlib" Type="Library" URL="../Colour Lab Library/Colour Lab.lvlib"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="RGB to Color.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/RGB to Color.vi"/>
<Item Name="Color to RGB.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/Color to RGB.vi"/>
<Item Name="High Resolution Relative Seconds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/High Resolution Relative Seconds.vi"/>
<Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/>
<Item Name="FixBadRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/FixBadRect.vi"/>
<Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap.vi"/>
<Item Name="Picture to Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Picture to Pixmap.vi"/>
<Item Name="Unflatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Unflatten Pixmap.vi"/>
<Item Name="Flatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Flatten Pixmap.vi"/>
</Item>
</Item>
<Item Name="Build Specifications" Type="Build"/>
Expand Down
101 changes: 90 additions & 11 deletions src/Colour Lab.vipb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<VI_Package_Builder_Settings Version="2020.1" Created_Date="2023-03-27 04:02:09" Modified_Date="2023-03-30 23:58:10" Creator="Goodwill" Comments="" ID="1efec8c6738046aafe7a5ec6a659699a">
<VI_Package_Builder_Settings Version="2020.1" Created_Date="2023-03-27 04:02:09" Modified_Date="2023-06-04 19:45:00" Creator="Goodwill" Comments="" ID="574b03eff86278374f6be7350ca2113e">
<Library_General_Settings>
<Package_File_Name>FisoThemes_lib_Colour_Lab</Package_File_Name>
<Library_Version>1.0.0.3</Library_Version>
<Library_Version>1.1.0.4</Library_Version>
<Auto_Increment_Version>false</Auto_Increment_Version>
<Library_Source_Folder>.</Library_Source_Folder>
<Library_Output_Folder>..\builds\1.0.0.2</Library_Output_Folder>
<Library_Output_Folder>..\builds\1.1.0.3</Library_Output_Folder>
<Company_Name>FisoThemes</Company_Name>
<Library_Summary/>
<Library_License>MIT</Library_License>
Expand All @@ -27,10 +27,8 @@
</Custom_Action_VIs>
<VI_Package_Configuration_File>Colour Lab.vipc</VI_Package_Configuration_File>
<Description>
<One_Line_Description_Summary>A LabVIEW toolkit for fast and simple RGB, HSV, HSL, CMYK, HEX or DEC colour manipulation</One_Line_Description_Summary>
<Description>Fast and simple RGB, HSV, HSL, CMYK, HEX or DEC colour manipulation

This toolkit does the following conversions:
<One_Line_Description_Summary>A LabVIEW toolkit for colour manipulation.</One_Line_Description_Summary>
<Description>This toolkit does the following conversions:

- CMYK to Colour
- CMYK to RGB
Expand All @@ -45,11 +43,22 @@ This toolkit does the following conversions:
- RGB to CMYK
- RGB to Colour
- RGB to HSL
- RGB to HSV</Description>
- RGB to HSV
- Colour to Greyscale
- Invert Colour
- RGB Luminosity

There is also additive and substractive colour mixing.</Description>
<Copyright>Copyright (c) 2022, FisoThemes</Copyright>
<Packager/>
<URL>https://github.com/fisothemes/LabVIEW-Colour-Lab--Colour-Manipulation-Toolkit</URL>
<Release_Notes>Preparing for VIMP release.</Release_Notes>
<Release_Notes>New Features:
----------------
+ Added Additive Colour Mixer VI
+ Added Subtractive Colour Mixer VI
+ Added RGB Luminosity VI
+ Added Colour to Greyscale VI
+ Added Invert Colour VI</Release_Notes>
</Description>
<Destinations>
<Toolkit_VIs>
Expand Down Expand Up @@ -203,7 +212,7 @@ This toolkit does the following conversions:
<Name/>
<View_Format>Icons</View_Format>
<Size>
<Height_Row>4</Height_Row>
<Height_Row>5</Height_Row>
<Width_Col.>4</Width_Col.>
</Size>
<_256_Color_Icon>00000C1E001D00000C1800000C00000000000020002000180000000000FFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF6666FF6666FF6666FF6666FF666666FF6666FF6666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF000000000000000000000000000000000000000000000000000000000000FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000999966FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF000000000000000000000000000000000000000000000000000000000000999966FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF000000FFFFFFFFFFFFFFFFFFFFFFFF000000999966999966999966FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF000000FFFFFFFFFFFFFFFFFFFFFFFF000000999966FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF000000FFFFFFFFFFFF000000000000000000999966FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFFFFFFFFFFFFFF0000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFF0000000000000000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFFFFFFFFFFFFFF0000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFF0000000000000000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFFFFFFFFFFFFFF0000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000FFFFFFFFFFFFFFFFFFFFFFFF0000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66000000000000FFFFFFFFFFFF0000000000006666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000FF6666FF6666FF6666FF6666FF6666FFCC66FFCC66FFCC66FFCC66FFFF66FFFF66FFFF66FFFF660000000000000000000000006666996666996666FF6666FFCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF66669966669966669966999966FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000CC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CCCC66CC6666FF6666FF6666FF6666FF66FF6666FF6666FF6666FF66FFFF66FFFF66FFFF66FFFF66FFCC66FFCC66FFCC66FFCC66FF6666FF6666FF6666FF6666FF6666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</_256_Color_Icon>
Expand Down Expand Up @@ -413,7 +422,77 @@ This toolkit does the following conversions:
<Path>Colour Lab Library\VIs\RGB to HSL.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>7724FB8DC7A2C3823C1518A2D0E6706F</GUID>
<Items_Data>
<Type>Item</Type>
<Sub_Palette_Index>-1</Sub_Palette_Index>
<NameSub_Menu_Name>Additive Colour Mixer.vi</NameSub_Menu_Name>
<Short_Name/>
<is_Merge_VI>false</is_Merge_VI>
<Position>
<Row>1</Row>
<Column>3</Column>
</Position>
<Icon>00000000</Icon>
<Path>Colour Lab Library\VIs\Additive Colour Mixer.vi</Path>
<VI_Title/>
</Items_Data>
<Items_Data>
<Type>Item</Type>
<Sub_Palette_Index>-1</Sub_Palette_Index>
<NameSub_Menu_Name>Subtractive Colour Mixer.vi</NameSub_Menu_Name>
<Short_Name/>
<is_Merge_VI>false</is_Merge_VI>
<Position>
<Row>1</Row>
<Column>4</Column>
</Position>
<Icon>00000000</Icon>
<Path>Colour Lab Library\VIs\Subtractive Colour Mixer.vi</Path>
<VI_Title/>
</Items_Data>
<Items_Data>
<Type>Item</Type>
<Sub_Palette_Index>-1</Sub_Palette_Index>
<NameSub_Menu_Name>RGB Luminosity.vi</NameSub_Menu_Name>
<Short_Name/>
<is_Merge_VI>false</is_Merge_VI>
<Position>
<Row>5</Row>
<Column>1</Column>
</Position>
<Icon>00000000</Icon>
<Path>Colour Lab Library\VIs\RGB Luminosity.vi</Path>
<VI_Title/>
</Items_Data>
<Items_Data>
<Type>Item</Type>
<Sub_Palette_Index>-1</Sub_Palette_Index>
<NameSub_Menu_Name>Invert Colour.vi</NameSub_Menu_Name>
<Short_Name/>
<is_Merge_VI>false</is_Merge_VI>
<Position>
<Row>5</Row>
<Column>2</Column>
</Position>
<Icon>00000000</Icon>
<Path>Colour Lab Library\VIs\Invert Colour.vi</Path>
<VI_Title/>
</Items_Data>
<Items_Data>
<Type>Item</Type>
<Sub_Palette_Index>-1</Sub_Palette_Index>
<NameSub_Menu_Name>Colour to Greyscale.vi</NameSub_Menu_Name>
<Short_Name/>
<is_Merge_VI>false</is_Merge_VI>
<Position>
<Row>5</Row>
<Column>3</Column>
</Position>
<Icon>00000000</Icon>
<Path>Colour Lab Library\VIs\Colour to Greyscale.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>DFA558982F5353866E50D879E98C64C4</GUID>
</Functions_Palette_Data>
</Library_Palette_Definition>
</VI_Package_Builder_Settings>
Binary file added src/Example/Image colour manipulation.vi
Binary file not shown.
Binary file added src/Playground/Play.vi
Binary file not shown.

0 comments on commit 09c7597

Please sign in to comment.