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 548223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:03:23+00:00 2026-05-13T11:03:23+00:00

I am making a drawing app and I want to increment my brush size

  • 0

I am making a drawing app and I want to increment my brush size depending on the touches velocity.

How would I accomplish this?

  • 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-13T11:03:24+00:00Added an answer on May 13, 2026 at 11:03 am

    Yes. See the methods on UIView named touches*, specifically:

    - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
    

    It gets called when a move (“slide”?) is detected, and doesn’t suffer from being “fooled” by multiple quick touches. You can get the coordinate of the current finger position in the view and the time the event ocurred:

    UITouch *touch = [touches anyObject];
    CGPoint inFrameCoordinate = [touch locationInView:self];
    NSTimeInterval timestamp = [touch timestamp]
    

    Get the distance and time between two coordinates to calculate the velocity.

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

Sidebar

Related Questions

I'm making a drawing app. In the centre of the screen, I want the
I am making a desktop app with MonoMac that relies on system.drawing. This works
I've got this strange bug in my app. I'm making a subview and drawing
So I'm making a drawing app that uses flash. I want to be able
i am making a drawing with finger app. I want to set a start
I am making a drawing app and would like to share the image. However,
I am making a drawing app for iOS and I have the following classes:
I have a question about making a drawing app for Android. What is the
I'm making a simple drawing app on Android. I'm using the FingerPaint.java provided with
I'm making a vector drawing application. I use this algorithm to generate outlines. This

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.