Skip to content

SchemeColor

Source code

Description

https://openpyxl.readthedocs.io/en/stable/api/openpyxl.drawing.colors.html

Usage

SchemeColor(
  tint = NULL,
  shade = NULL,
  comp = NULL,
  inv = NULL,
  gray = NULL,
  alpha = NULL,
  alphaOff = NULL,
  alphaMod = NULL,
  hue = NULL,
  hueOff = NULL,
  hueMod = NULL,
  sat = NULL,
  satOff = NULL,
  satMod = NULL,
  lum = NULL,
  lumOff = NULL,
  lumMod = NULL,
  red = NULL,
  redOff = NULL,
  redMod = NULL,
  green = NULL,
  greenOff = NULL,
  greenMod = NULL,
  blue = NULL,
  blueOff = NULL,
  blueMod = NULL,
  gamma = NULL,
  invGamma = NULL,
  val = NULL,
  ...
)

Arguments

tint tint
shade shade
comp comp
inv inv
gray gray
alpha alpha
alphaOff alphaOff
alphaMod alphaMod
hue hue
hueOff hueOff
hueMod hueMod
sat sat
satOff satOff
satMod satMod
lum lum
lumOff lumOff
lumMod lumMod
red red
redOff redOff
redMod redMod
green green
greenOff greenOff
greenMod greenMod
blue blue
blueOff blueOff
blueMod blueMod
gamma gamma
invGamma invGamma
val val
Additional arguments, i.e. kwargs.

Value

An openpyxl Python object.

Examples

library("xlcharts")

# from Gradient Pie Charts example
slice <- DataPoint(
 idx = 0,
 explosion = 20,
 spPr = GraphicalProperties(
     gradFill = GradientFillProperties(
         gsLst = list(
                 pos=0,
                 prstClr='blue'
             ),
             GradientStop(
                 pos=100000,
                 schemeClr=SchemeColor(
                     val='accent1',
                     lumMod=30000,
                     lumOff=70000
                 )
             )
         )
     )
 )