Skip to content

Conversation

@14790897
Copy link

原理:在_draw_stroke中,对每一个笔画的颜色深度进行了随机
ink

@Gsllchb
Copy link
Owner

Gsllchb commented Sep 16, 2023

颜色随机的意义是什么?有谁的笔颜色会变?

@14790897
Copy link
Author

写的深写的浅,笔没墨笔有墨

@14790897
Copy link
Author

我说的是墨水深度变化

@Gsllchb
Copy link
Owner

Gsllchb commented Sep 16, 2023 via email

@14790897
Copy link
Author

微信图片_20230916191927
image
image

@Gsllchb
Copy link
Owner

Gsllchb commented Sep 16, 2023

那应该随机的是笔画颜色的透明度。

@14790897
Copy link
Author

出bug了,没有考虑阿尔法通道的情况,现在会随机阿尔法通道

rand_fill = tuple(
max(0, min(255, int(channel + ink_depth_rand)))
for channel in original_fill
)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

啊啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants