Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

ink_depth_rand/墨水深度随机化#50

Open
14790897 wants to merge 5 commits into
Gsllchb:masterfrom
14790897:ink
Open

ink_depth_rand/墨水深度随机化#50
14790897 wants to merge 5 commits into
Gsllchb:masterfrom
14790897:ink

Conversation

@14790897

Copy link
Copy Markdown

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

@Gsllchb

Gsllchb commented Sep 16, 2023

Copy link
Copy Markdown
Owner

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

@14790897

Copy link
Copy Markdown
Author

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

@14790897

Copy link
Copy Markdown
Author

我说的是墨水深度变化

@Gsllchb

Gsllchb commented Sep 16, 2023 via email

Copy link
Copy Markdown
Owner

@14790897

Copy link
Copy Markdown
Author

微信图片_20230916191927
image
image

@Gsllchb

Gsllchb commented Sep 16, 2023

Copy link
Copy Markdown
Owner

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

@14790897

Copy link
Copy Markdown
Author

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

Comment thread handright/_core.py
rand_fill = tuple(
max(0, min(255, int(channel + ink_depth_rand)))
for channel in original_fill
)

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants