Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9157211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:57:30+00:00 2026-06-17T12:57:30+00:00

Basically I’m trying to reprint this method every time a dropbox option is selected.

  • 0

Basically I’m trying to reprint this method every time a dropbox option is selected. However, the:

inscription "test", :margin => 1, :stroke => rgb(x, x, x)

Elements do not delete. They just append themselves to the old ones. I can’t seem to find a way to clear them without clearing the entire stack! Is there a way to use Shoe’s clear() for elements of the same type?

Please note, lots of this code is placeholder for other stuff, and that’s why I’m throwing constants around like candy.

def drawHeatMap #(calculatedGeneArray) NOT IMPLEMENTED
        # rect 'Pixels across, pixels down, width, height'
        pixelsAcross = 32
        pixelsDown = 28
        size = 18
        for i in 1..30
            if i <= 15 
            inscription "test", :margin => 1, :stroke => rgb(0, 128, 0)
            elsif i > 15
            inscription "test", :margin => 1, :stroke => rgb(205, 92, 92)
            end
            for j in 1..10
                stroke rgb(0, 0, 0) 
                #Fills Blocks randomly  
                randomnumber = 1+rand(8)
                case randomnumber
                when 1
                    fill rgb(19, 231, 3)
                when 2
                    fill rgb(9, 99, 0)   
                when 3
                    fill rgb(3, 73, 0)
                when 4 
                    fill rgb(74, 74, 0)
                when 5
                    fill rgb(48, 47, 0)
                when 6
                    fill rgb(32, 32, 48)
                when 7 
                    fill rgb(41, 41, 41)
                when 8 
                    fill rgb(15, 15, 15)
                end
                rect pixelsAcross, pixelsDown, size, size
                #Fills Ovals Randomly
                randomnumber = 1+rand(4)
                case randomnumber
                when 4
                    fill white
                    nostroke
                    oval  (pixelsAcross+(size/2)),(pixelsDown+(size/2)), size/4, center:true
                end         
                pixelsAcross += 18      
            end
            pixelsDown += 18
            pixelsAcross = 32   
        end 
    end 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:57:32+00:00Added an answer on June 17, 2026 at 12:57 pm

    I cannot tell what and when do you want to remove but I think you can use the following principle:

    Shoes.app do
    
      a=[]
    
      tmp=para "jkjkj"
      a << tmp
      tmp=para "sdfg"
      a << tmp
    
      button "jhjjh" do
       a.each{|l| l.remove}
      end
    
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have a list of delivery checkboxes one for deliver to this address
Basically, what I'm trying to create is a page of div tags, each has
Basically I am trying to make the in-app purchase work, but with no luck.
Basically, I want to do the opposite of this: how do i hide anchor
Basically, from the form that I made I send customer_name and with this code
Basically, I'm using this query to group a bunch of users based on the
Basically this is what I want: Person that comes to my website clicks link
Basically what I'm trying to do is generate an alphanumeric string, which is passed
Basically what i am trying to do here is to read from the table
Basically, I've been trying nXhtml mode, and it's terribly slow and buggy in Emacs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.