Difference between revisions of "B2.ParticleSystem:getColorBuffer"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2024.11<br/> '''Class:''' b2.ParticleSystem<br/> === Description === TO DO! <syntaxhighlight lang="lua"> (number) = b2.ParticleSy...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  
 
=== Description ===
 
=== Description ===
TO DO!
+
Gets the color of each particle. The array is length GetParticleCount().
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
(number) = b2.ParticleSystem:getColorBuffer()
+
(table) = b2.ParticleSystem:getColorBuffer()
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) TO DO!<br/>
+
'''Returns''' (table) the pointer to the head of the particle colors array<br/>
  
 
{{B2.ParticleSystem}}
 
{{B2.ParticleSystem}}

Latest revision as of 06:42, 8 November 2024