HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2014
1123
可憐日本地図を描画 マウス上の都道府県を取得3解決


可憐

リンク

2014/11/23(Sun) 01:00:48|NO.66148

日本地図を描画 マウス上の都道府県を取得したいのですが
どういうソースを組めばいいか検討がつきません。
何かいいアイデアがございましたら知恵を分けてください。
よろしくお願いします



この記事に返信する


fortunehill

リンク

2014/11/23(Sun) 01:44:28|NO.66149

/*ご参考(背景色で識別する)*/

repeat 5 color 255-cnt : boxf 2+(cnt*100),2,100+(cnt*100),100 loop ; 必要ならAPI関数 ExtFloodFill を参照して下さい。 onclick gosub *label stop *label pget mousex,mousey title strf("%d,%d,%d",ginfo_r,ginfo_g,ginfo_b) ; mref Bm,67 :title Bm(40) ; RGB値で判断したい場合。 return



可憐

リンク

2014/11/23(Sun) 03:16:18|NO.66151

いつもお世話になっております。
色で識別する方法は思いつきませんでした。
これでやりたいことができそうです
ありがとうございました!



ごめんなさい。名無しではなく、mitukiです。

リンク

2015/3/3(Tue) 20:49:16|NO.67660

screen 1, 100, 100, 0, 300, 20
gradf 0, 0, 50, 50, 1, $eef0ff, $88ccff

screen 0, 400, 400, 0, 300, 200
gmode gmode_alpha, 0, 0, 128
font "MS ゴシック", 30
repeat
redraw 0

gradf 0, 0, 400, 400, 0, $333333, $cccccc

repeat 6
y = 50 * cnt + 10 * cnt
x = 50 * cnt + 10 * cnt
if (mousex > 10 && mousex < 60 && mousey > y && mousey < (y + 50)) {
pos 10, y + 10
gcopy 1, 0, 0, 50, 50
}

color 0, 0, 0
pos 10,30
mes "1"
pos 10,90
mes "2"
pos 10,150
mes "3"
pos 10,210
mes "4"
pos 10,270
mes "5"
pos 10,330
mes "6"
loop

redraw 1
wait 1
loop

ん?



ONION software Copyright 1997-2023(c) All rights reserved.