Sha256: 5ebcc7b3e7ef1e1d630319c0343fa48ef99ebbae1fe07692b6615f896847e983

Contents?: true

Size: 804 Bytes

Versions: 3

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_particle(:red)
generator.build_particle(:green)
generator.build_particle(:blue)
generator.build_particle(:alpha)
generator.build_particle(:diffusion)
generator.build_particle(:visual)
generator.build_particle(:overflow)
generator.build_particle(:edit)
generator.build_particle(:style)
generator.build_option(:pre_render_style) do |styles_send, _user_proc|
  styles_send.each do |particle_send, value|
    send(particle_send, value)
  end
end
generator.build_particle(:hide)

generator.build_particle(:remove) do |particle_to_remove|
  case particle_to_remove
  when :color
    send(particle_to_remove, :black)
  when :shadow
    # TODO : code to write
    puts 'code to write'
  else
    send(particle_to_remove, 0)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.2.8 lib/atome/genesis/generators/material.rb
atome-0.5.2.7 lib/atome/genesis/generators/material.rb
atome-0.5.2.5 lib/atome/genesis/generators/material.rb