2709876
A ddrace_shella2, A ddrace_shella3, A ddrace_shella4 - ddnet-mapsCListBox
in any major way. I already have a loading indicator implemented, it's just waiting for stuff that can load in the background. I can make a PR in the evening if you want to start using it.sv_map
CListBox
in any major way. I already have a loading indicator implemented, it's just waiting for stuff that can load in the background. I can make a PR in the evening if you want to start using it. kesim
-> kesit
UPD
-> UDP
oyuncular
-> oyuncu
// 256, 128
let img = ImageReader::open("skins/brownbear.png")?.decode()?;
dbg!(img.width());
dbg!(img.height());
let mut def = RgbaImage::new(96, 64);
dbg!(def.width());
dbg!(def.height());
let filter = FilterType::Triangle;
let back_feet_shadow = img.crop_imm(192, 64, 64, 32).resize(64, 30, filter);
blend_region(&mut def.sub_image(8, 32, 64, 30), &back_feet_shadow);
let body_shadow = img.crop_imm(96, 0, 96, 96).resize(64, 64, filter);
blend_region(&mut def.sub_image(14, 0, 64, 64), &body_shadow);
let front_feet_shadow = img.crop_imm(192, 64, 64, 32).resize(64, 30, filter);
blend_region(&mut def.sub_image(24, 32, 64, 30), &front_feet_shadow);
let back_feet = img.crop_imm(192, 32, 64, 32).resize(64, 30, filter);
blend_region(&mut def.sub_image(8, 32, 64, 30), &back_feet);
let body = img.crop_imm(0, 0, 96, 96).resize(64, 64, filter);
blend_region(&mut def.sub_image(14, 0, 64, 64), &body);
let front_feet = img.crop_imm(192, 32, 64, 32).resize(64, 30, filter);
blend_region(&mut def.sub_image(24, 32, 64, 30), &front_feet);
let left_eye = img.crop_imm(64, 96, 32, 32).resize(26, 26, filter);
blend_region(&mut def.sub_image(36, 17, 26, 26), &left_eye);
let right_eye = left_eye.fliph();
blend_region(&mut def.sub_image(36 + 9, 17, 26, 26), &right_eye);
def.save("result.png")?;
@Learath2 well rust is easy as this#[allow(clippy::cast_precision_loss)]
fn color_code_base(col: u32, alpha: bool) -> HSLAColor {
let a = if alpha {
((col >> 24) & 0xFF) as f32 / 255.0f32
} else {
1.0f32
};
let x = ((col >> 16) & 0xFF) as f32 / 255.0f32;
let y = ((col >> 8) & 0xFF) as f32 / 255.0f32;
let z = (col & 0xFF) as f32 / 255.0f32;
HSLAColor { x, y, z, a }
}
#[allow(clippy::cast_precision_loss)]
fn color_code_base(col: u32, alpha: bool) -> HSLAColor {
let a = if alpha {
((col >> 24) & 0xFF) as f32 / 255.0f32
} else {
1.0f32
};
let x = ((col >> 16) & 0xFF) as f32 / 255.0f32;
let y = ((col >> 8) & 0xFF) as f32 / 255.0f32;
let z = (col & 0xFF) as f32 / 255.0f32;
HSLAColor { x, y, z, a }
}
uint64_t
I guessio_read_all
fseek
uint64_t
I guess uint64_t
over size_t
?size_t
is the wrong type, it differs between 32 bit and 64 bit systmesm_ContextHash
was uninitialized.
cargo clippy --workspace -- -D warnings -D clippy::nursery -A clippy::collection_is_never_read -A clippy::string_lit_as_bytes -A clippy::option_if_let_else -A clippy::use_self
i cooked this up for smth at workcargo clippy --workspace -- -D warnings -D clippy::nursery -A clippy::collection_is_never_read -A clippy::string_lit_as_bytes -A clippy::option_if_let_else -A clippy::use_self
i cooked this up for smth at work /login PasswordForFokko
the server gets /login youractualpassword
/login randomfkingtopken
(edited)/loginhunter2
or /lgoin hunter2
then you still accidentally leak it though31a80c9
Remove gfx_finish
config variable - Robyt3
1028ced
Remove dbg_hitch
config variable - Robyt3
943f98d
Improve config variable descriptions, add missing descriptions - Robyt3
98b3fe4
Fix typo in internal name of cl_assets_entities
config variable - Robyt3
16115c2
Merge pull request #7094 from Robyt3/Variable-Desc-Fixes - JupeyyChat room
[white]yo
Ryozuki who u
[white]I am a ghost!
[white]xDD
[white]xDD
[white]whoopsie
[white]gg
[white]Good game
[white]Well played
Ryozuki I've got to go
Ryozuki Thank you
[white]bb