Graphics
クラス: fillOvalのメソッドの場合、と は何x
をy
意味しますか? ドキュメントには次のように記載されています。
x - the x coordinate of the upper left corner of the oval to be filled.
y - the y coordinate of the upper left corner of the oval to be filled.
ぜんぜんわかりません。どういう意味ですか ?
x - the x coordinate of the upper left corner of the oval to be filled.
y - the y coordinate of the upper left corner of the oval to be filled.
画像を参照してください。
一枚の紙に、長方形を描きます。次に、長方形の内側に楕円を描き、できるだけ長方形を埋めます (楕円は長方形の 4 つの側面すべてに一度接触する必要があります)。
正方形の左上隅は (x,y)