2019年8月25日日曜日

※途中経過 改良型 9Hex宝珠メノラー(あわ/ひふみ祝詞,タネコクサ文字,文字上向き,時計/反時計回り)でーす。(*^_^*)

こんにちは、ちーでーす。(*^_^*)



※途中経過 改良型 9Hex宝珠メノラー(あわ/ひふみ祝詞,タネコクサ文字,文字上向き,時計/反時計回り)を掲載いたしまーす。



*プログラム(要:十進BASICインタプリター システム)
(要:windows コントロールパネルのフォントの画面に、TCMタネコクサ文字フォントを入れておくこと。)
 フォント(URL再掲載): https://hikkyneet.up.seesaa.net/image/TF-TANKS.TTF

SET BITMAP SIZE 8141,9301
SET WINDOW -4070,4070,-4650,4650
SET POINT STYLE 1
SET LINE COLOR 1
SET LINE WIDTH 1
OPTION ANGLE DEGREES


CALL houju2awa(0,-2078,0)
CALL houju2hihumi(0,-2078,60)
CALL houju2awa(0,-2078,120)
CALL houju2hihumi(0,-2078,180)
CALL houju2awa(0,-2078,240)
CALL houju2hihumi(0,-2078,300)
END



EXTERNAL SUB houju2awa(ZX,ZY,ZDEG)
OPTION ANGLE DEGREES
DIM X(5),Y(5)
DIM XX8(9,4),YY8(9,4)

PICTURE shikaku21
   REM 宝珠用文字セット
   SET TEXT FONT "TCM Tanekokusa Character" ,20
   READ B$
   SET TEXT ANGLE E
   PLOT TEXT,AT 0,A:B$
END PICTURE


PICTURE shikaku2
   REM 八角形用文字セット
   SET TEXT FONT "TCM Tanekokusa Character" ,36
   READ B$
   SET TEXT ANGLE E
   PLOT TEXT,AT 0,A:B$
END PICTURE


PICTURE shikaku31
   REM あわ(文字上向き時計回り)渦巻き(大)
   FOR I=360 TO 719 STEP 45
      LET F=I/11.5
      LET XX=F*SIN(I)
      LET YY=F*COS(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
   
   FOR I=720 TO 1079 STEP 22.5
      LET F=I/11.5
      LET XX=F*SIN(I)
      LET YY=F*COS(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
   
   FOR I=1080 TO 1439 STEP 15
      LET F=I/11.5
      LET XX=F*SIN(I)
      LET YY=F*COS(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
END PICTURE


PICTURE shikaku49
   REM あわ(文字上向き時計回り)渦巻き(大)
   REM SET TEXT JUSTIFY文↓を追加してみました
   SET TEXT JUSTIFY "center" , "half"
   LET A=0
   LET E=0
   DRAW shikaku31 WITH ROTATE(0)
END PICTURE


PICTURE shikaku52
   REM 宝珠(ひふみ/あわ)
   PLOT LINES: 0,-196;-99,-98
   PLOT LINES: 0,-196;99,-98
   LET D=139
   LET XX=D*COS(-45)
   LET YY=D*SIN(-45)
   FOR I=-44.5 TO 225 STEP 0.5
      LET XX2=D*COS(I)
      LET YY2=D*SIN(I)
      PLOT LINES: XX,YY;XX2,YY2
      LET XX=XX2
      LET YY=yy2
   NEXT I
END PICTURE


PICTURE mugendai1
   REM 宝珠1個完成(あわ)
   DRAW shikaku52 WITH ROTATE(180)*SHIFT(0,196)
   DRAW shikaku49 WITH ROTATE(0)*SHIFT(0,196)
END PICTURE


PICTURE eda1
   REM 枝の部分
   FOR D=300 TO 1200 STEP 300
      LET XX=D*COS(0)
      LET YY=D*SIN(0)
      FOR I=-0.25 TO -180 STEP -0.25
         LET XX2=D*COS(I)
         LET YY2=D*SIN(I)
         PLOT LINES: XX,YY;XX2,YY2
         LET XX=XX2
         LET YY=yy2
      NEXT I
   NEXT D
END PICTURE


PICTURE houju2asub
   REM 宝珠1列と半円(あわ)
   DRAW mugendai1 WITH SHIFT(0,0)
   RESTORE
   LET R=1200
   FOR II=300 TO R STEP 300
      DRAW mugendai1 WITH SHIFT(II,0)
      RESTORE
      DRAW mugendai1 WITH SHIFT(-II,0)
      IF II   NEXT II
   
   DRAW eda1 WITH SHIFT(0,56)
   PLOT LINES: 0,56;0,-1350
END PICTURE



PICTURE hachikaku2sub
   REM 八角形の部分
   FOR II=48 TO 192 STEP 48
      DRAW CIRCLE WITH SCALE(II)
   NEXT II
   
   REM LET P=360*COS(22.5)
   REM LET Q=360*SIN(22.5)
   REM PLOT LINES: 0,0;P,Q
   
   LET L=0
   FOR II=257 TO 401 STEP 48
      LET L=L+1
      LET K=0
      FOR JJ=0 TO 360 STEP 45
         LET K=K+1
         LET XX8(K,L)=II*COS(JJ)
         LET YY8(K,L)=II*SIN(JJ)
      NEXT JJ
      PLOT LINES: XX8(1,L),YY8(1,L);XX8(2,L),YY8(2,L);XX8(3,L),YY8(3,L)
      PLOT LINES: XX8(3,L),YY8(3,L);XX8(4,L),YY8(4,L);XX8(5,L),YY8(5,L)
      PLOT LINES: XX8(5,L),YY8(5,L);XX8(6,L),YY8(6,L);XX8(7,L),YY8(7,L)
      PLOT LINES: XX8(7,L),YY8(7,L);XX8(8,L),YY8(8,L);XX8(9,L),YY8(9,L)
   NEXT II
   
   PLOT LINES: 0,48;0,-48
   
   FOR K=1 TO 8 STEP 1
      LET I=K*45
      LET P=192*COS(I)
      LET Q=192*SIN(I)
      LET P1=401*COS(I)
      LET Q1=401*SIN(I)
      PLOT LINES: P,Q;P1,Q1
   NEXT K
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=0
   LET E=0
   DRAW shikaku2 WITH SHIFT(22,-22)
   DRAW shikaku2 WITH SHIFT(-21,-23)
   
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=49
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=97
   LET E=0
   FOR II=0 TO 3
      LET C=-II*360/4-45
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=145
   LET E=0
   FOR II=0 TO 3
      LET C=-II*360/4-45
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=192
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=237
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=281
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=326
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
END PICTURE


PICTURE awazukei1
   DRAW houju2asub WITH SHIFT(0,0)
   DRAW hachikaku2sub WITH SHIFT(0,-1751)
END PICTURE

LET ZY=ZY-392
DRAW awazukei1 WITH SHIFT(ZX,ZY)*ROTATE(ZDEG)

REM あわ唄
DATA "ア","カ","ハ","ナ","マ","イ","キ","ヒ"
DATA "ニ","ミ","ウ","ク","フ","ヌ","ム","エ"
DATA "ケ","ヘ","ネ","メ","オ","コ","ホ","ノ"
DATA "モ","ト","ロ","ソ","ヨ","ヲ","テ","レ"
DATA "セ","ォ","ツ","ル","ス","ユ","ゥ","チ"
DATA "リ","シ","ァ","タ","ラ","サ","ヤ","ワ"

REM 八角形
DATA "イ","ィ"
DATA "チ","キ","ミ","ヒ","リ","ニ","ァ","シ"
DATA "オ","ウ","ア","エ"
DATA "ゥ","ェ","ワ","ヲ"
DATA "タ","カ","マ","ハ","ラ","ナ","ヤ","サ"
DATA "テ","ケ","メ","ヘ","レ","ネ","ォ","セ"
DATA "ト","コ","モ","ホ","ロ","ノ","ヨ","ソ"
DATA "ツ","ク","ム","フ","ル","ヌ","ユ","ス"


END SUB




EXTERNAL SUB houju2hihumi(ZX,ZY,ZDEG)
OPTION ANGLE DEGREES
DIM X(5),Y(5)
DIM XX8(9,4),YY8(9,4)

PICTURE shikaku21
   REM 宝珠用文字セット
   SET TEXT FONT "TCM Tanekokusa Character" ,22
   READ B$
   SET TEXT ANGLE E
   PLOT TEXT,AT 0,A:B$
END PICTURE


PICTURE shikaku2
   REM 八角形用文字セット
   SET TEXT FONT "TCM Tanekokusa Character" ,36
   READ B$
   SET TEXT ANGLE E
   PLOT TEXT,AT 0,A:B$
END PICTURE


PICTURE shikaku31
   REM ひふみ(文字上向き反時計回り)渦巻き(大)
   FOR I=360 TO 719 STEP 45
      LET F=I/11.5
      LET XX=F*COS(I)
      LET YY=F*SIN(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
   
   FOR I=720 TO 1079 STEP 22.5
      LET F=I/11.5
      LET XX=F*COS(I)
      LET YY=F*SIN(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
   
   FOR I=1080 TO 1439 STEP 15
      LET F=I/11.5
      LET XX=F*COS(I)
      LET YY=F*SIN(I)
      DRAW shikaku21 WITH SHIFT(XX,YY)
   NEXT I
END PICTURE


PICTURE shikaku49
   REM ひふみ(文字上向き反時計回り)渦巻き(大)
   REM SET TEXT JUSTIFY文↓を追加してみました
   SET TEXT JUSTIFY "center" , "half"
   LET A=0
   LET E=-90
   DRAW shikaku31 WITH ROTATE(90)
END PICTURE



PICTURE shikaku52
   REM 宝珠(ひふみ/あわ)
   PLOT LINES: 0,-196;-99,-98
   PLOT LINES: 0,-196;99,-98
   LET D=139
   LET XX=D*COS(-45)
   LET YY=D*SIN(-45)
   FOR I=-44.5 TO 225 STEP 0.5
      LET XX2=D*COS(I)
      LET YY2=D*SIN(I)
      PLOT LINES: XX,YY;XX2,YY2
      LET XX=XX2
      LET YY=yy2
   NEXT I
END PICTURE


PICTURE mugendai1
   REM 宝珠1個完成(ひふみ)
   DRAW shikaku52 WITH ROTATE(180)*SHIFT(0,196)
   DRAW shikaku49 WITH ROTATE(0)*SHIFT(0,196)
END PICTURE




PICTURE eda1
   REM 枝の部分
   FOR D=300 TO 1200 STEP 300
      LET XX=D*COS(0)
      LET YY=D*SIN(0)
      FOR I=-0.25 TO -180 STEP -0.25
         LET XX2=D*COS(I)
         LET YY2=D*SIN(I)
         PLOT LINES: XX,YY;XX2,YY2
         LET XX=XX2
         LET YY=yy2
      NEXT I
   NEXT D
END PICTURE


PICTURE houju2asub
   REM 宝珠1列と半円(ひふみ)
   DRAW mugendai1 WITH SHIFT(0,0)
   RESTORE
   LET R=1200
   FOR II=300 TO R STEP 300
      DRAW mugendai1 WITH SHIFT(II,0)
      RESTORE
      DRAW mugendai1 WITH SHIFT(-II,0)
      IF II   NEXT II
   
   DRAW eda1 WITH SHIFT(0,56)
   PLOT LINES: 0,56;0,-1350
END PICTURE



PICTURE hachikaku2sub
   REM 八角形の部分
   FOR II=48 TO 192 STEP 48
      DRAW CIRCLE WITH SCALE(II)
   NEXT II
   
   REM LET P=360*COS(22.5)
   REM LET Q=360*SIN(22.5)
   REM PLOT LINES: 0,0;P,Q
   
   LET L=0
   FOR II=257 TO 401 STEP 48
      LET L=L+1
      LET K=0
      FOR JJ=0 TO 360 STEP 45
         LET K=K+1
         LET XX8(K,L)=II*COS(JJ)
         LET YY8(K,L)=II*SIN(JJ)
      NEXT JJ
      PLOT LINES: XX8(1,L),YY8(1,L);XX8(2,L),YY8(2,L);XX8(3,L),YY8(3,L)
      PLOT LINES: XX8(3,L),YY8(3,L);XX8(4,L),YY8(4,L);XX8(5,L),YY8(5,L)
      PLOT LINES: XX8(5,L),YY8(5,L);XX8(6,L),YY8(6,L);XX8(7,L),YY8(7,L)
      PLOT LINES: XX8(7,L),YY8(7,L);XX8(8,L),YY8(8,L);XX8(9,L),YY8(9,L)
   NEXT II
   
   PLOT LINES: 0,48;0,-48
   
   FOR K=1 TO 8 STEP 1
      LET I=K*45
      LET P=192*COS(I)
      LET Q=192*SIN(I)
      LET P1=401*COS(I)
      LET Q1=401*SIN(I)
      PLOT LINES: P,Q;P1,Q1
   NEXT K
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=0
   LET E=0
   DRAW shikaku2 WITH SHIFT(22,-22)
   DRAW shikaku2 WITH SHIFT(-21,-23)
   
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=49
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=97
   LET E=0
   FOR II=0 TO 3
      LET C=-II*360/4-45
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=145
   LET E=0
   FOR II=0 TO 3
      LET C=-II*360/4-45
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=192
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=237
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=281
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
   
   SET TEXT JUSTIFY "center" , "bottom"
   LET A=326
   LET E=0
   FOR II=0 TO 7
      LET C=-II*360/8-22.5
      DRAW shikaku2 WITH ROTATE(C)
   NEXT II
END PICTURE


PICTURE hihumizukei1
   DRAW houju2asub WITH SHIFT(0,0)
   DRAW hachikaku2sub WITH SHIFT(0,-1751)
END PICTURE

LET ZY=ZY-392
DRAW hihumizukei1 WITH SHIFT(ZX,ZY)*ROTATE(ZDEG)


REM ひふみ祝詞
DATA "ヒ","フ","ミ","ヨ","イ","ム","ナ","ヤ"
DATA "コ","ト","モ","チ","ロ","ラ","ネ","シ"
DATA "キ","ル","ユ","ァ","ツ","ワ","ヌ","ソ"
DATA "ヲ","タ","ハ","ク","メ","カ","ウ","オ"
DATA "ォ","ニ","サ","リ","ヘ","テ","ノ","マ"
DATA "ス","ア","セ","エ","ホ","レ","ケ","ゥ"

REM 八角形
DATA "イ","ィ"
DATA "チ","キ","ミ","ヒ","リ","ニ","ァ","シ"
DATA "オ","ウ","ア","エ"
DATA "ゥ","ェ","ワ","ヲ"
DATA "タ","カ","マ","ハ","ラ","ナ","ヤ","サ"
DATA "テ","ケ","メ","ヘ","レ","ネ","ォ","セ"
DATA "ト","コ","モ","ホ","ロ","ノ","ヨ","ソ"
DATA "ツ","ク","ム","フ","ル","ヌ","ユ","ス"


END SUB





0 件のコメント:

コメントを投稿