-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contrary to color_cmyk, qcolor_cmyk allows to load a color from float component (and not int) into a QColor object (and not a string representation).
- Loading branch information
Showing
3 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "qcolor_cmyk", | ||
"type": "function", | ||
"groups": ["Color"], | ||
"description": "Returns a QColor object based on its cyan, magenta, yellow, black and alpha components.", | ||
"arguments": [{ | ||
"arg": "cyan", | ||
"description": "cyan component as a float value from 0 to 100" | ||
}, { | ||
"arg": "magenta", | ||
"description": "magenta component as a float value from 0 to 100" | ||
}, { | ||
"arg": "yellow", | ||
"description": "yellow component as a float value from 0 to 100" | ||
}, { | ||
"arg": "black", | ||
"description": "black component as a float value from 0 to 100" | ||
}, { | ||
"arg": "alpha", | ||
"optional": true, | ||
"default": "100", | ||
"description": "alpha component as a float value from 0 to 100" | ||
}], | ||
"examples": [{ | ||
"expression": "qcolor_cmyk(100,90,80.15,60.22)", | ||
"returns": "CMYKA: 100.00,90,80.15,60.22" | ||
}], | ||
"tags": ["cyan", "magenta", "yellow", "black", "alpha", "color", "components"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters