Comments (3)
From Takayuki Shimizukawa on 2010-09-30 04:27:25+00:00
前述のページに掲載されていたもう一つの方法、2値画像への文字描画を用いた解決方法について、 non-antialiased-text ブランチを作成してコミットしました。ただし、fill=(0,0,0)ではエラーとなるため(2値だから?)、filll='#000' で逃げています。
mode について詳しくはこちら。 http://www.pythonware.com/library/pil/handbook/concepts.htm
現在の実装は文字背景色白、文字色黒、で固定実装しています。どちらも色を変えたいと思った場合は文字描画後に色を変換するような仕組みを考える必要がありそうです。
from nwdiag.
From Takeshi KOMIYA on 2010-09-30 04:41:07+00:00
ノードの背景が白固定となってしまうのは、color 属性や background 属性と
明らかにバッティングするのでそのままでは採用できません。
多少変換コストがかかったとしても、ユーザの指定を優先にしたいと考えています。
マスクを使って文字を転写するなど何かいいアイディアがないでしょうか。
from nwdiag.
From Takeshi KOMIYA on 2012-03-16 09:02:43+00:00
Fixed in [[https://bitbucket.org/tk0miya/seqdiag/changeset/311c2b2c4643|311c2b2c4643]]
from nwdiag.
Related Issues (20)
- Rackdiag - changing rack width and image quality HOT 1
- background color for rackdiag items HOT 1
- what is the purpose of undocumented "route" statement of nwdiag ?
- More then 2 network does not render correctly HOT 1
- Cannot use class attribute in rackdiag
- draw tcp header error HOT 1
- Exception combining Sphinx nwdiag `:caption:` directive with `:figwidth: image` HOT 3
- Can't disable drop shadows from network elements
- Can't create a node with multiple attachments without network
- Add "label" and "address" attributes to the group elements
- Add local "node_" attributes
- Networks are not comparable
- wrong arc colour when using `linecolor` in PDFs
- `rackdiag`: `ascending` does not seem to work for multiple racks
- Python3.8 pip install fails due to pillow version HOT 2
- rack description throws an error in rackdiag 0.9.4 HOT 1
- sphinx-contrib modules for rackdiag and packetdiag HOT 1
- Enable a vertical layout for network diagrams HOT 2
- IPv6 Addresses and prefixes are cut off HOT 1
- Website Integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwdiag.