Code uses Bresenham Algorithm to draw a circle, with a modification parameter to increase/decrease the step for calculation of point. Bresenham Algorithm is used to reduce the calculation needed for drawing a circle by making use of property of symmetry
To Draw a circle on the given image. required informations are 2 points which are going to be marked by mouse click.
1st point is midpoint of the circle.
2nd point is radius of the circle.
This function uses rectangle command to plot a circle. The center is to be given in a vector form and radius is a non-negative number.
Take a center point, a normal vector and a radius and plots a Circle in 3D using plot3
A simple wxPython/OpenGL application to draw a sphere.
VSSCaptionText is a component to draw a caption in the titlebar on the right hand side (just before the min, max and close buttons) of any window that has the focus, or the foreground window and a title bar.It supports the XP Shadow effect for...
If you want to draw a 3D cube on your form you can use this component.
Setting Initial Focus in Web Form is an article through which users can gain knowledge about setting intial focus, which is a code inorder to load a page in the browser for the first time. In this article the author offers few code which perform...
CYLINDER: A function to draw a N-sided cylinder based on the
generator curve in the vector R. It is based on file exchange 5468. I changed a little bit so that it can generate more points on the surface of the cylinder.
What it does:
It is useful if you have a vocabulary in the form of a tree, eg it has terms within terms with nodes attached to them.
It will place all the first level terms in a block and when a term is clicked displays the tree...
A customizable widget allowing you to place a Feedburner email subscribe form in any widgetized area of your site.
1. Create a Feedburner email subscription widget
2. Customize the widget with any content...
The aim of this project is to create a simple and effective word processor to handle Japanese typed in the form of ASCII letters.
This recipe describes how to create a fade-in window using IronPython. Several applications use fade-in windows for temporary data e.g. new Outlook XP mail messages are shown through a fade-in/fade-out pop-up window.
Fading in can be...
This function detects a circle in any gray scale image by thesholding using Ostu's rule. The range of radius for detection of circle can be defined inside the function named Hughcir.m.
Splinedraw will let you draw a curve in the current plot by setting/deleting/moving points which are then connected by a spline. The points' coordinates are printed in the command window. Can be used to draw a trend line manually.
This function allows one to create a hyperlink in a GUI out of a text uicontrol. The url (which can be different form the text displayed), initial color, and visited color can each be set.
The function has been tested in Matlab 5.3 and...
Function to draw a rubberband line and return the start and end points. Usage: [p1,p2]=rbline; or [p1,p2]=rbline(h); where h is an axis handle. Click the mouse in the plot to define the start point. A rubberband...
Email Form script allows you to use a simple PHP email form.
You can type a URL in the form and it will load the requested page.
This a very simple implementation for how to do a readlines in reverse. It is not optimized for performance (which often doesn't matter). I have a 2nd version that is faster by loading blocks of data into memory instead of character by character....