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

change the mask of nickname color for better look, and add parser for message color #15

Merged
merged 5 commits into from Aug 27, 2014
Merged

Conversation

mmis1000
Copy link

效果圖
效果圖

live demo
http://log.ysitd.ba4b.net/

nickname color mask的更改
更改mask成指定每一色第2跟第3 bit為10,也即是數值 0b0100 0000 到 0b1101 1111 間
這樣的話,每一色顏色強度會被限制在 64~223 間
明亮很多,而且也比較容易辨識

color parser則是使log支援irc的標準色碼
詳細格式見
https://github.com/myano/jenni/wiki/IRC-String-Formatting
有實作的部分是 前後景色、粗體、底線、斜體、重設
反白的部分則沒真的實作,因為目前大部分client似乎都不支援
實作的意義也不大

@dannvix
Copy link
Member

dannvix commented Aug 26, 2014

Wow. Nice hack!
/cc dannvix#25

Sent from my iPhone

On Aug 26, 2014, at 11:29 PM, mmis1000 [email protected] wrote:

效果圖

live demo
http://log.ysitd.ba4b.net/

nickname color mask的更改
更改mask成指定每一色第2跟第3 bit為10,也即是數值 0b0100 0000 到 0b1101 1111 間
這樣的話,每一色顏色強度會被限制在 64~223 間
明亮很多,而且也比較容易辨識

color parser則是使log支援irc的標準色碼
詳細格式見
https://github.com/myano/jenni/wiki/IRC-String-Formatting
有實作的部分是 前後景色、粗體、底線、斜體、重設
反白的部分則沒真的實作,因為目前大部分client似乎都不支援
實作的意義也不大

You can merge this Pull Request by running

git pull https://github.com/YSITD/Logbot master
Or view, comment on, or merge it at:

#15

Commit Summary

add a better mask
add message color parser
File Changes

M public/applications.js (242)
Patch Links:

https://github.com/g0v/Logbot/pull/15.patch
https://github.com/g0v/Logbot/pull/15.diff

Reply to this email directly or view it on GitHub.

@clkao
Copy link
Member

clkao commented Aug 26, 2014

❤️

@caasi
Copy link
Member

caasi commented Aug 26, 2014

👍 👍

有興趣試試調明度嗎 XD
http://www.cs.rit.edu/~ncs/color/t_convert.html

@dannvix
Copy link
Member

dannvix commented Aug 27, 2014

@caasi: 調明度不須自行轉換,CSS 可以直接指定 HSL 數值如 color: hsl(20, 60%, 55%) 這樣

Sent from my iPhone

On Aug 27, 2014, at 1:07 AM, caasi Huang [email protected] wrote:

有興趣試試調明度嗎 XD
http://www.cs.rit.edu/~ncs/color/t_convert.html


Reply to this email directly or view it on GitHub.

@mmis1000
Copy link
Author

@dannvix
不過css hsl限ie9以上,如果要用的話,
就得drop掉ie8支援,或用吃效能的方式手動轉

@dannvix
Copy link
Member

dannvix commented Aug 27, 2014

�$B86PTG!:!!$<U<U!#IT=,479MN8�(B IE8�$B!D�(B XD

Sent from my iPhone

On Aug 27, 2014, at 12:08 PM, mmis1000 [email protected] wrote:

@dannvix
�$BIT2a�(Bcss hsl�$B8B�(Bie9�$B0J>e!$G!2LMWMQE_OC!$�(B
�$B="F@�(Bdrop�$BY\�(Bie8�$B;Y1g!$0?MQ5IZCG=E_J}<0<jF0m[�(B

�$B!=�(B
Reply to this email directly or view it on GitHub.

@mmis1000
Copy link
Author

@dannvix
你的回應亂碼了阿...

@mmis1000
Copy link
Author

這樣的話呢?
jQuery貌似就有內建hsl轉rgb了

@godfat godfat merged commit 18fef1d into g0v:master Aug 27, 2014
@audreyt
Copy link
Member

audreyt commented Aug 27, 2014

Deployed on logbot.g0v.tw. Thanks all! 🌈

:rainbow:

@pcchou
Copy link

pcchou commented Aug 27, 2014

@audreyt MLP是怎樣啦XDDDD

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.

7 participants