Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny
pixelspammer
Commits
c67900b2
Verified
Commit
c67900b2
authored
Oct 09, 2021
by
Jenny
Browse files
removed alpha value
parent
325a597b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
c67900b2
...
...
@@ -18,7 +18,7 @@ fn draw_image_slice(image_path: &String, offset_x: u32, offset_y: u32, from_x: u
let
px
=
img
.get_pixel
(
x
,
y
);
let
target_x
=
x
+
offset_x
;
let
target_y
=
y
+
offset_y
;
let
msg
=
format!
(
"PX {} {} {:X}{:X}{:X}
{:X}
\n
"
,
target_x
,
target_y
,
px
[
0
],
px
[
1
],
px
[
2
]
,
px
[
3
]
);
let
msg
=
format!
(
"PX {} {} {:X}{:X}{:X}
\n
"
,
target_x
,
target_y
,
px
[
0
],
px
[
1
],
px
[
2
]);
stream
.write
(
msg
.as_bytes
())
.expect
(
"Failed to send message!"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment