当前位置: 首页>>代码示例>>Golang>>正文


Golang C.Quantum函数代码示例

本文整理汇总了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))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例2: SetOpacityQuantum

// Sets the opacity color of the pixel wand
func (pw *PixelWand) SetOpacityQuantum(opacity Quantum) {
	C.PixelSetOpacityQuantum(pw.pw, C.Quantum(opacity))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例3: SetRedQuantum

// Sets the red color of the pixel wand
func (pw *PixelWand) SetRedQuantum(red Quantum) {
	C.PixelSetRedQuantum(pw.pw, C.Quantum(red))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例4: SetGreenQuantum

// Sets the green color of the pixel wand
func (pw *PixelWand) SetGreenQuantum(green Quantum) {
	C.PixelSetGreenQuantum(pw.pw, C.Quantum(green))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例5: SetMagentaQuantum

// Sets the magenta color of the pixel wand
func (pw *PixelWand) SetMagentaQuantum(magenta Quantum) {
	C.PixelSetMagentaQuantum(pw.pw, C.Quantum(magenta))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例6: SetCyanQuantum

// Sets the cyan color of the pixel wand
func (pw *PixelWand) SetCyanQuantum(cyan Quantum) {
	C.PixelSetCyanQuantum(pw.pw, C.Quantum(cyan))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例7: SetBlueQuantum

// Sets the blue color of the pixel wand
func (pw *PixelWand) SetBlueQuantum(blue Quantum) {
	C.PixelSetBlueQuantum(pw.pw, C.Quantum(blue))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例8: SetBlackQuantum

// Sets the black color of the pixel wand
func (pw *PixelWand) SetBlackQuantum(black Quantum) {
	C.PixelSetBlackQuantum(pw.pw, C.Quantum(black))
}
开发者ID:qwo,项目名称:abelana-gcp,代码行数:4,代码来源:pixel_wand.go

示例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)
}
开发者ID:AbhiAgarwal,项目名称:abelana,代码行数:5,代码来源:conversions.go

示例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)
}
开发者ID:AbhiAgarwal,项目名称:abelana,代码行数:5,代码来源:conversions.go


注:本文中的C.Quantum函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。