-
Notifications
You must be signed in to change notification settings - Fork 249
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
14790897
wants to merge
5
commits into
Gsllchb:master
Choose a base branch
from
14790897:ink
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+95
−57
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
颜色随机的意义是什么?有谁的笔颜色会变? |
写的深写的浅,笔没墨笔有墨 |
我说的是墨水深度变化 |
深浅只会影响印痕和粗细,没墨时笔画会断断续续,颜色也不会变。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年9月16日(周六) 晚上6:51
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Gsllchb/Handright] ink_depth_rand/墨水深度随机化 (PR #50)
写的深写的浅,笔没墨笔有墨
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
那应该随机的是笔画颜色的透明度。 |
出bug了,没有考虑阿尔法通道的情况,现在会随机阿尔法通道 |
14790897
commented
Apr 6, 2024
rand_fill = tuple( | ||
max(0, min(255, int(channel + ink_depth_rand))) | ||
for channel in original_fill | ||
) |
There was a problem hiding this comment.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
原理:在_draw_stroke中,对每一个笔画的颜色深度进行了随机
![ink](https://private-user-images.githubusercontent.com/121866954/268003860-3e8c4cbe-1c2a-4e71-b5eb-ebaf9a699699.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjIyNzIsIm5iZiI6MTczOTE2MTk3MiwicGF0aCI6Ii8xMjE4NjY5NTQvMjY4MDAzODYwLTNlOGM0Y2JlLTFjMmEtNGU3MS1iNWViLWViYWY5YTY5OTY5OS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNDMyNTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYWJjZWRhYTVlM2FmMzZkYWYzMTdjY2ZiMDBhM2FkODlkZTFlOWU1ODRhYjU0NGVhN2IxN2MxZjVjYmEwYjM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.e6vH-_DMKVcmSPCXlvCOYwbtadl9qMbAfk3NAvGlk7A)