archive-edu.com » EDU » H » HWS.EDU

Total: 727

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • David Eck's Java Page
    written a set of seven applets for use with my introductory computer science textbook The Most Complex Machine Each applet deals with some specific aspect of computer science such as logic circuits programming or computer graphics There is also a set of lab worksheets that use the applets For full details and links to the applets and labs see http math hws edu TMCM java On line Java Text This is complete eleven chapter text on introductory programming using Java as the language of instruction I used it in a class I ve taught several times since 1996 It includes about many applets with source code Cellular Automata and the Edge of Chaos Educational pages and applets dealing with one dimensional cellular automata The main applet EdgeOfChaosCA can make some very nice pictures but go to the index page to get full information Genetic Algorithms Demo In this applet you can watch as simulated organisms evolve over a number of generations You get to control some aspects of the world in which they live The applet is a simple demonstration of the genetic algorithm Mandelbrot Set Applets The Mandelbrot set is well known and I will not describe it here

    Original URL path: http://math.hws.edu/xJava/index.html (2016-02-07)
    Open archived version from archive


  • Genetic Algorithms Demo in JavaScript
    Speed Yearly Stats Only Fast Moderate Slow Start From Scratch World Design Target Population 10 25 30 40 50 75 100 Eaters are born Near the center Near the upper left corner At a random location At a parent s location Mutation Probability 0 0 01 0 05 0 1 0 5 1 2 5 10 Crossover Probability 0 10 25 50 60 70 80 90 95 100 Number of

    Original URL path: http://math.hws.edu/eck/jsdemo/jsGeneticAlgorithm.html (2016-02-07)
    Open archived version from archive

  • Index of /xJava/GA/edu/hws/GA
    java 2001 02 25 14 04 27K GAFrame java 2001 02 25 13 09 1 5K Launcher java 2001 02 25 11 11 1 3K RadioGroupMenu java 2001 02 25 13 24 1 3K ReportWin java 2001 02 25 13

    Original URL path: http://math.hws.edu/xJava/GA/edu/hws/GA/ (2016-02-07)
    Open archived version from archive

  • Pentominos Puzzle Solver
    represented by a different color Consider an 8 by 8 board consisting of 64 squares If you select four squares can the remaining 60 squares be filled in with the twelve pentominos This Pentominos Puzzle Solver applet will try to solve this puzzle Note that the applet does not try to be very efficient about finding the solution It s mainly a demonstration of a simple search technique To set

    Original URL path: http://math.hws.edu/xJava/Pentominos_old/ (2016-02-07)
    Open archived version from archive

  • Index of /xJava/PentominosSolver/source
    07 13 21 7 5K MosaicPanel java 2006 04 07 13 21 24K Pentominos java 2006 04 12 09 56 4 1K PentominosLauncherApplet java 2006 04 07 13 21 1 5K PentominosPanel java 2006 04 07 13 21 51K pics

    Original URL path: http://math.hws.edu/xJava/PentominosSolver/source/ (2016-02-07)
    Open archived version from archive

  • CPSC 324, Fall 2002, Lab 1
    at the right Remember that the brush tool must be selected for you to see its options Opacity is a common option for many tools At the default setting 100 the brush is fully opaque If you reduce the opacity the brush becomes partially transparent Try this Draw in one color at 100 opacity Switch to a different color reduce the opacity to 50 and draw over your previous drawing The Pressure Sensitivity option is unfortunately irrelevant to us since it is only for use on a computer that has a pressure sensitive drawing tablet instead of a mouse The Fade Out option is interesting It makes the brush act as if it is running out of paint as you move it Turn on this option and try it Note that you can set the number of pixels px that it takes for the paint to run out The Gradient option lets you draw using the currently selected gradient Try it The brush changes color as you move it according to the current gradient To select a different gradient click the Current Gradient icon in the Toolbox window The bucket tool is used to fill a region with a color or pattern In the Tool Options for the bucket you can select whether it will fill with the foreground FG color with the background BG color or with the currently selected Pattern A pattern is just a small image that will be repeated as necessary to fill the region To select the pattern click on the Current Pattern icon in the Toolbox Window and then click the pattern that you want in the Pattern Selection dialog Click and hold on a pattern to see the whole pattern at full size The bucket has the usual Opacity option that can be used to select for transparency The Threshold option determines which pixels will be affected when you use the tool In the default setting of 15 the paint will only spread to cover pixels that were similar in color to the pixel where you click If you increase the threshold to 255 then the paint will fill the entire image If you decrease the threshold to 0 it will only spread to pixels that are exactly the same color as the place where you click Remember that as with all paint tools if there is a selection then the bucket only affects pixels in the selection For example you could use the rectangular selection tool to select a rectangular region and use the bucket to fill just that rectangle Try this with the Opacity option turned down and with the Threshold set to 255 Try this with a pattern The gradient tool which is officially called the Blend Tool is used to fill the entire image or just the selected region with a gradient A gradient is just a changing sequence of colors The color in this case can also include the special value transparent which lets the background show through To see its default operation select the gradient tool and then click and drag on an image When you release the mouse a gradient is created in which the color changes from the foreground color at the point where you clicked the mouse to the background color at the point where you release the mouse Try dragging the mouse both short distances and longer distances Now take a look at the Tool Options for the gradient tool As usual there is an Opacity option The Blend option can be used to change from the usual foreground FG to background BG gradient to a FG to Transparent or to a Custom Gradient If you select Custom Gradient then the gradient that is used is the Current Gradient that is selected in the Toolbox window To see the effects of the Gradient and Repeat options just try them Be sure to try the Radial and Square Gradient options Turn on the Adaptive Supersampling option to get smother blending of colors in the gradient The image at the right was created using nothing but gradients plus a rectangular selection to limit the extent of the rainbow For example the eyeball was made with the Radial Eyeball Green custom gradient and a Radial gradient option Finally for today I will mention the clone tool which looks like a little rubber stamp in the Toolbox window This tool allows you to copy or clone a pattern or image You draw with the clone tool in the same way that you draw with a brush and the clone tool uses the same Current Brush as the brush tool However instead of drawing with the foreground color it draws with part of the Current Pattern or with part of an image To draw with the Current Pattern select Pattern Source in the Tool Options window for the clone tool To draw with an image there is one additional step since you have to specify where you want to copy the image from Select Image Source in the Tool Options window Then control click that is hold down the Control key while you click at a point in the image that you want to copy This can be in any image window You can use the clone tool to copy one part of an image to a different location in the same image or you can copy from one image to a different image Use control click to specify where you want to copy from and then start drawing as usual at the point where you want to copy to The Alignment option in the Tool Options window determines the relationship between points in the original image and points in the copy If this option is set to Non Aligned then each point you click in the copy corresponds to the point where you control clicked in the original and a new copy grows out from that point as you drag the mouse Each click and drag operation

    Original URL path: http://math.hws.edu/eck/cs324/s04/lab1/ (2016-02-07)
    Open archived version from archive

  • CPSC 324, Spring 2004, Lab 2
    frame in the timer routine As its set up the program uses x and y coordinates that range from 1 to 1 If you want to use different coordinates change the line gluOrtho2D 1 1 1 1 in the initTransformation routine It might be more convenient to use a larger range of coordinates such as from 0 to 100 Use the mesacomp command to compile your program This command is defined on the cslab computers as an alias that calls the g compiler with the options that are necessary for compiling and linking OpenGL GLUT programs When your program is complete run it and take a screen shot For an animation take several screen shots at several different times Post the screen shots on your web page Turn in a printout of your program next Wednesday After the assignment is due you can post a link to your source code if you want Grading will be based partially on ambition Do not just make a simple modification of the sample program Try to draw something interesting or attractive Exercise 2 The file home cs324 gl draw cc contains an OpenGL program that lets the user draw black lines by clicking and dragging on a drawing area The program also shows a menu area which contains the commands Clear and Undo Copy gl draw cc into your own directory For the second exercise of this lab you should add features to this program As a minimum Make it possible to use different colors Add items to the menu that the user can click to select the color There are two possibilities Add words or little colored rectangles to represent a small number of colors Or have some way to specify the red green and blue components of the desired color We

    Original URL path: http://math.hws.edu/eck/cs324/s04/lab2/ (2016-02-07)
    Open archived version from archive

  • CPSC 324, Spring 2004, Lab 3
    middle mouse button after starting the scaling operation the object will be scaled in the vertical or horizontal direction only Rotation Press the R key Move the mouse to rotate the object around a line perpendicular to the screen Click with the left mouse button to finish Click with the right mouse button to abort If you click with the middle mouse button after starting the scaling operation you can rotate the object freely in three dimensions An alternative way to start a rotation operation is to click the left mouse button and drag it in a circular arc anywhere on the World Window The rotation operation starts when you release the mouse It is also possible to input translation scaling and rotation factors numerically To do this hit the N key N stands for numeric input This pops up an input box with numeric buttons where you can set the values All these operations can be applied to the camera just as they are applied to any other object You can move and point the camera to get the view of the world that you want when you render an image of your world Note that rotations and scaling are relative to the center of the object which is shown as a tiny yellow or pink ball This center point is not necessarily at the geometric center of the object You can get yourself real confused if you don t remember to press the left or right mouse button to end a transformation operation Understanding Edit Mode When an object is first added to the world it is in Edit Mode You can put the selected object s into Edit Mode or exit from Edit Mode by pressing the TAB key In Edit Mode the vertices of a mesh object are marked by tiny pink or yellow balls Edit Mode is for editing the individual vertices of the object In Edit Mode you can select one vertex or a group of vertices Selected vertices are shown in yellow You can apply transformations to an individual vertex or a selected group of vertices just as if they were objects When you scale or rotate a group of vertices only the vertices in the group are scaled or rotated The object at right for example was made from a 6 sided cylinder by selecting the vertices at the top of cylinder and rotating them When a mesh object is first added in Edit Mode all of its vertices are selected Pressing the A key will deselect all vertices If you press the A key when no vertices are selected all the vertices will be selected You can select a vertex by right clicking Hold down the shift key while right clicking to select multiple vertices There is a way to add a group of vertices to the selection Hit the B key You can then draw a box by left clicking and dragging with the mouse Vertices within the box are added to the set of selected vertices This is an easy way for example to select all the vertices at the top of cylinder You might have to change the point of view several times while selecting the vertices and performing operations on them There are a lot of things you can t do in Edit Mode so don t forget that you have to press the TAB key to get out of Edit Mode By the way the A and B keys can also be used outside of Edit Mode for selecting sets of objects Adding a Lamp After you have created a model of your world you want to render an image of it But you won t see anything in the world unless there is light To light your world you have to add one or more lamps You can add a lamp to the world using the Lamp command in the Add menu The lamp appears at the position of the 3D cursor You might have to add several lamps to properly light your scene By default a lamp acts like a point source of light and it does not cast shadows It s possible to edit a lamp You can turn it into a spotlight Spotlights are capable of casting shadows You can increase or decrease the lamp s brightness You can change the color of the light To do these things you have to use the Button Window that is at the bottom of the screen The Button Window can show several different sets of buttons The set that is displayed is controlled by the small buttons along the top of the window In this picture I ve clicked on the small Lamp icon This makes the Button Window show buttons that are used for editing lamp properties The window will only show buttons if a lamp is selected in the World Window Otherwise the Button window will be empty To edit a lamp make sure that the lamp is selected and click the little lamp icon at the top of the Button Window or press F4 You ll see many editing controls For now let s look at a set of sliders located at the center of the Button Window as shown to the right Here I ve adjusted the top slider to increase the energy that is the brightness of the lamp The R G and B sliders control the color of the light Here I ve decreased the value of B to give a slightly yellowish light You can drag the slider to change its value You can also shift click on the left part of the slider button if you want to type in a value Press return after typing the value Rendering an Image Once you have some objects and lights in the world you can see a rendered image by pressing the F12 key This will open a new window to show the rendered image Press F11 to

    Original URL path: http://math.hws.edu/eck/cs324/s04/lab3/ (2016-02-07)
    Open archived version from archive