Color 10 entries
RGB, CMYK and hex color values
Entries in this section
- app.CreateRGBColor(Red, Green, Blue)Builds an RGB color, each component 0-255. Screen work, web images, social posts.
- app.CreateCMYKColor(Cyan, Magenta, Yellow, Black)Builds a CMYK color, each component 0-100. If the job ends up on press — brochures, packag
- app.CreateGrayColor(Value) / CreateHLSColor(H, L, S) / CreateHSBColor(H, S, B)Three more ways to build a color: gray (0-255), HLS, HSB. For lighter and darker versions
- color.RGBAssign(R, G, B) / color.CMYKAssign(C, M, Y, K)Changes the components of an existing color in place. No new object — you mutate this one,
- color.HLSAssign(H, L, S) / color.HSBAssign(H, S, B) / color.GrayAssign(V)In-place recolor via HLS, HSB or gray. To generate a scale of one hue at different brightn
- color.ConvertToCMYK() / ConvertToRGB() / ConvertToGray() / ConvertToHLS()Explicit color model conversion. It mutates the object rather than returning a new one. Co
- color.HexValue / color.RGBValueHexValue is a #RRGGBB string you can match against the swatch in the design file; RGBValue
- color.BlendWith(OtherColor, Weight)Mixes two colors into an in-between shade. Automatic palettes and tonal ramps. Weight is t
- color.CopyAssign(SourceColor) / color.IsSame(OtherColor)Copies one color's values onto another (without changing object references), or tests whet
- color.StringAssign("#0085CD") / color.ToString()Sets a color straight from a hex string. The one that suits designers — paste the client's
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls