本文整理汇总了Golang中C.Quantum函数的典型用法代码示例。如果您正苦于以下问题:Golang Quantum函数的具体用法?Golang Quantum怎么用?Golang Quantum使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Quantum函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: SetYellowQuantum
// Sets the yellow color of the pixel wand
func (pw *PixelWand) SetYellowQuantum(yellow Quantum) {
C.PixelSetYellowQuantum(pw.pw, C.Quantum(yellow))
}
示例2: SetOpacityQuantum
// Sets the opacity color of the pixel wand
func (pw *PixelWand) SetOpacityQuantum(opacity Quantum) {
C.PixelSetOpacityQuantum(pw.pw, C.Quantum(opacity))
}
示例3: SetRedQuantum
// Sets the red color of the pixel wand
func (pw *PixelWand) SetRedQuantum(red Quantum) {
C.PixelSetRedQuantum(pw.pw, C.Quantum(red))
}
示例4: SetGreenQuantum
// Sets the green color of the pixel wand
func (pw *PixelWand) SetGreenQuantum(green Quantum) {
C.PixelSetGreenQuantum(pw.pw, C.Quantum(green))
}
示例5: SetMagentaQuantum
// Sets the magenta color of the pixel wand
func (pw *PixelWand) SetMagentaQuantum(magenta Quantum) {
C.PixelSetMagentaQuantum(pw.pw, C.Quantum(magenta))
}
示例6: SetCyanQuantum
// Sets the cyan color of the pixel wand
func (pw *PixelWand) SetCyanQuantum(cyan Quantum) {
C.PixelSetCyanQuantum(pw.pw, C.Quantum(cyan))
}
示例7: SetBlueQuantum
// Sets the blue color of the pixel wand
func (pw *PixelWand) SetBlueQuantum(blue Quantum) {
C.PixelSetBlueQuantum(pw.pw, C.Quantum(blue))
}
示例8: SetBlackQuantum
// Sets the black color of the pixel wand
func (pw *PixelWand) SetBlackQuantum(black Quantum) {
C.PixelSetBlackQuantum(pw.pw, C.Quantum(black))
}
示例9: ConvertRGBToHSL
func ConvertRGBToHSL(qr, qg, qb Quantum) (h, s, l float64) {
var dh, ds, dl C.double
C.ConvertRGBToHSL(C.Quantum(qr), C.Quantum(qg), C.Quantum(qb), &dh, &ds, &dl)
return float64(dh), float64(ds), float64(dl)
}
示例10: ConvertRGBToHSB
func ConvertRGBToHSB(qr, qg, qb Quantum) (h, s, b float64) {
var dh, ds, db C.double
C.ConvertRGBToHSB(C.Quantum(qr), C.Quantum(qg), C.Quantum(qb), &dh, &ds, &db)
return float64(dh), float64(ds), float64(db)
}