{{newin|[[0.10.0]]|100|type=function|text=It has replaced [[love.graphics.point]]}}
Draws one or more points.

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.points( x, y, ... )
</source>
=== 引数 ===
{{param (日本語)|number|x|The position of the first point on the x-axis.}}
{{param (日本語)|number|y|The position of the first point on the y-axis.}}
{{param (日本語)|number|...|The x and y coordinates of additional points.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.points( points )
</source>
=== 引数 ===
{{param (日本語)|table|points|A table containing multiple point positions, in the form of <code>{x, y, ...}</code>.}}
{{subparam|number|x|The position of the first point on the x-axis.}}
{{subparam|number|y|The position of the first point on the y-axis.}}
{{subparam|number|...|The x and y coordinates of additional points.}}
=== 返値 ===
ありません。

== 関数 ==
Draws one or more individually colored points.

バージョン [[11.0 (日本語)|11.0]] まで、色成分値は 0 〜 1 (小数値) ではなく 0 〜 255 (整数値) の範囲内です。
=== 概要 ===
<source lang="lua">
love.graphics.points( points )
</source>
=== 引数 ===
{{param (日本語)|table|points|A table containing multiple individually colored points, in the form of <code>{point, ...}</code>.}}
{{subparam|table|point|A table containing the position and color of the first point, in the form of <code>{x, y, r, g, b, a}</code>. The color components are optional.}}
{{subparam|table|...|Additional tables containing the position and color of more points, in the form of <code>{x, y, r, g, b, a}</code>. The color components are optional.}}
=== 返値 ===
ありません。
=== 注釈 ===
The global color set by [[love.graphics.setColor]] is modulated (multiplied) with the per-point colors.

== 注釈 ==
The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments.

Points are not affected by [[love.graphics.scale]] - their [[love.graphics.setPointSize|size]] is always in pixels.

== 用例 ==
Render a starfield
<source lang="lua">
function love.load()
   local screen_width, screen_height = love.graphics.getDimensions()
   local max_stars = 100   -- how many stars we want

   stars = {}   -- table which will hold our stars

   for i=1, max_stars do   -- generate the coords of our stars
      local x = love.math.random(5, screen_width-5)   -- generate a "random" number for the x coord of this star
      local y = love.math.random(5, screen_height-5)   -- both coords are limited to the screen size, minus 5 pixels of padding
      stars[i] = {x, y}   -- stick the values into the table
   end
end

function love.draw()
   love.graphics.points(stars)  -- draw all stars as points
end
</source>

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[love.graphics.setPointSize (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Drawing (日本語)| ]]
{{#set:Description=Draws one or more points.}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.points}}