dplug ~master (2024-09-30T22:25:31Z)
Home
Dub
Repo
ChangeChannelType
dplug
graphics
color
Resolves to a Color instance with a different ChannelType.
template
ChangeChannelType
(COLOR, T)
template
ChangeChannelType
(COLOR, T)
template
ChangeChannelType (
COLOR
T
)
if
(
is
(
COLOR
:
Color
!
Spec
,
Spec
...
)
) {
alias
ChangeChannelType
=
Color
!(
T
,
COLOR
.
Spec
[
1
..$])
;
}
Members
Aliases
ChangeChannelType
alias
ChangeChannelType
=
Color
!(
T
,
COLOR
.
Spec
[
1
..$])
Undocumented in source.
Meta
Source
See Implementation
dplug
graphics
color
aliases
ExpandNumericType
L16
L32f
L8
RGB
RGBA
RGBA16
RGBAf
RGBf
functions
blendColor
blendColorPremul
itpl
sign
sort2
sqr
mixin templates
FieldList
properties
structFields
structs
Color
templates
ChangeChannelType
ChannelType
ExpandIntegerType
GenFieldList
ResizeNumericType
SignedBitsType
UnsignedBitsType
valueBits
Resolves to a Color instance with a different ChannelType.