Sha256: efb378dcd9e8f5a01bc4c29bf849ce5d05ab5b3e98f02b8ecb6acc0e72f99ccc

Contents?: true

Size: 1.29 KB

Versions: 13

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

a = Matrix.new({ col: 1, row: 8, width: 120, height: 333, id: :vie_playground, name: :matrix_2, margin: 9,
                 matrix_style: { color: { red: 0.3, green: 0.3, blue: 0.6, alpha: 1 }, smooth: 20 },
                 cell_style: { color: { red: 0.333, green: 0.333, blue: 0.6, alpha: 1 }, smooth: 300, shadow: { blur: 6 }
                               #border: { color: :black, thickness: 0, pattern: :solid }
                 }
               })

######## tests

a.assign(2) do
  curent_cell = self
  curent_cell.image({ path: "./medias/images/moto.png", width: 33, height: 33})
  curent_cell.active(:inactive)
  touch(:long) do
    if curent_cell.active.value == :inactive
      curent_cell.color(:yellow)
      curent_cell.active(:active)
    else
      curent_cell.color(:red)
      curent_cell.active(:inactive)
    end
  end
end

a.assign(3) do
  color({ red: 0.6, green: 0.333, blue: 0.6, alpha: 1 })
  grab(:vie_playground_3).shadow({ blur: 12 })
end


wait 2 do
  a.add({ columns: 3 })
end

# add row
# wait 4 do
#   a.add({ rows: 2 })
# end

# examples:

# add columns
#  a.add({ columns: 3 })

# add row
#   a.add({ rows: 2 })

# reformat
# a.reformat({rows: 4, cols: 2})

# resize matrix
# a.resize_matrix({ width: 666, height: 333 })

# crop matrix
# a.matrix.height(150)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.1.7 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/unstable/_matrix.rb
atome-0.5.3.8.8 vendor/assets/src/medias/rubies/examples/_matrix.rb
atome-0.5.3.8.1 vendor/assets/src/medias/rubies/examples/matrix.rb
atome-0.5.3.8.0 vendor/assets/src/medias/rubies/examples/matrix.rb
atome-0.5.3.7.8 vendor/assets/src/medias/rubies/examples/matrix.rb
atome-0.5.3.7.3 vendor/assets/src/medias/rubies/examples/matrix.rb
atome-0.5.3.7.2 vendor/assets/src/medias/rubies/examples/matrix.rb