Giter Site home page Giter Site logo

Comments (3)

tk0miya avatar tk0miya commented on June 24, 2024

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.

tk0miya avatar tk0miya commented on June 24, 2024

From Takeshi KOMIYA on 2010-09-30 04:41:07+00:00

ノードの背景が白固定となってしまうのは、color 属性や background 属性と
明らかにバッティングするのでそのままでは採用できません。
多少変換コストがかかったとしても、ユーザの指定を優先にしたいと考えています。

マスクを使って文字を転写するなど何かいいアイディアがないでしょうか。

from nwdiag.

tk0miya avatar tk0miya commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.