Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ink_depth_rand/墨水深度随机化 #50

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants