Balloonクラス

  • 吹き出しを作成するクラス
  • Balloon(画像,吹き出しの中心,大きさ,吹き出しの種類,くちばしの向き,セリフ )
    • Balloon(char img,int center_x,int center_y),(int a, int b),0 or 1 , (int mouse_x, int mouse_y)
    • fukidashi(文字サイズ,文字数)

テスト

  • 使用例
    from Balloon import Balloon
    center = [300,250]
    radius =[200,100]
    flag = 0
    mouse = [0,0]
    str = 'ああああああああああああああああaaaaaaaaaaaaaaaaaaaaああああいいいい'
    b = Balloon("blank.bmp",center,radius,flag,mouse,str)
    b.fukidashi(8,15)
  • 結果

test_Balloon.JPG

seminar-personal/fukumoto2017


添付ファイル: filetest_Balloon.JPG 332件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-01-14 (火) 14:48:01