# Gimp.Brush.prototype.set_spikes

    function set_spikes(spikes_in: Number(gint)): [ok: Boolean, spikes_out: Number(gint)] {
        // Gjs wrapper for gimp_brush_set_spikes()
    }

Sets the number of spikes for a generated brush.

Sets the number of spikes for a generated brush. Clamps spikes to [2,20]. Returns the clamped value. Returns an error when brush is non-parametric or not editable.

Since 2.4

spikes_in

  The desired number of spikes.

ok

  TRUE on success.

spikes_out

  The number of spikes actually assigned.