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

  • SEARCH
  • Home
  • 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 7539005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:16:09+00:00 2026-05-30T07:16:09+00:00

How do I use Cairo ta draw on a shoes window? I am trying

  • 0

How do I use Cairo ta draw on a shoes window?

I am trying to start a school project for Computer Graphics. Can anybody post a simple code that draws a circle on a shoes window? I’d be very grateful. I have been searching for quite a while now… I’ve reached nowhere yet. so, please help me!! 🙂

  • 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-05-30T07:16:11+00:00Added an answer on May 30, 2026 at 7:16 am

    I’m not sure how you would use Cairo in Ruby. It’s not my area of expertise; however drawing circles in Shoes is not difficult at all. The following example allows circles to be created from mouse clicking and dragging.

    Shoes.app do
        ox,oy = nil,nil
        click{|button, x, y| # on click, set the original x and y position
            if button == 1
                ox = x
                oy = y
            end
        }
        release{|button, x, y| #on mouse release, draw the circle
            if button == 1
                oval(
                    :left => [ox, x].min, # furthest left point
                    :top => [oy, y].min, # furthest top point
                    :radius => ((ox-x).abs + (oy-y).abs) / 2 # the average of the positive difference between original and final x and y points
                )
            end
        }
    end
    

    Obviously, depending on your specific requirements, you will need to decide whether it is good enough.

    In my experience, Shoes is a decent platform for making a broad range of low to medium power apps. However, if you’re trying to build something substantial, like a graphics package, there are probably better solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use cairo to render a simple text onto a cairo surface. I use
Does anybody have a C# wrapper for Cairo library? I need it to use
use level1\level2\level3; Can someone explain with a simple demo ?
use LWP::Simple; use Parallel::ForkManager; @links=( [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-windows.exe,SweetHome3D-2.1-windows.exe], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-macosx.dmg,SweetHome3D-2.1-macosx.dmg], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3DViewer-2.1.zip,SweetHome3DViewer-2.1.zip], ); # Max 30 processes for
I want to use cairo to enhance gtkentry look. For this, I have connected
I use the python rsvg bindings to render an svg image into cairo and
I'm going out of my mind a bit here. I'm trying to draw some
I am currently struggling with a side project I hope you can help me
I have some legacy MFC apps, and I'd like to use the Cairo drawing
I'm writing a little library where you can set a range; start and end

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.