acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_text_stream.h
1// First compilation from other files by camilo on 2022-10-07 23:30 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
5inline write_text_stream & operator << (write_text_stream & s, const ::color::color & color)
6{
7
8 if (s.fmtflags() & ::file::hex)
9 {
10
11 s.append_format("rgb(%3x,%3x,%3x,%0.2f)",
12 color.u8_red(),
13 color.u8_green(),
14 color.u8_blue(),
15 color.f32_opacity());
16
17 }
18 else
19 {
20
21 s.append_format("rgb(%3d,%3d,%3d,%0.2f)",
22 color.u8_red(),
23 color.u8_green(),
24 color.u8_blue(),
25 color.f32_opacity());
26
27 }
28
29 return s;
30
31}
32
33
34
35
36
37
Definition write_text_stream.h:43