dplug ~master (2024-12-12T14:21:32Z)
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
:
DefColor
!
Spec
,
Spec
...
)
) {
alias
ChangeChannelType
=
DefColor
!(
T
,
COLOR
.
Spec
[
1
..$])
;
}
Members
Aliases
ChangeChannelType
alias
ChangeChannelType
=
DefColor
!(
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
DefColor
templates
ChangeChannelType
ChannelType
ExpandIntegerType
GenFieldList
ResizeNumericType
SignedBitsType
UnsignedBitsType
valueBits
Resolves to a Color instance with a different ChannelType.