Colour variations on the Print1456 1456 applet landscape.

William Overington

Copyright 2000 William Overington

Here are six variations on the Print1456 1456 applet landscape. The original version of the Print1456 1456 applet landscape is also updated. The only difference of the six new variations from the new version of the Print1456 1456 applet landscape is that instead of a white background, these six versions each have a coloured background. Each of the new versions has the same update as the Print1456 1456 applet landscape itself. Each version is supplied here as a Java class file together with an HTML file. A link to the Print1456 1456 applet landscape is also here. The original link in the document where the Print1456 1456 applet landscape was introduced will now also supply this updated version. A link to the 1456 engine is also supplied, for convenience. The Print1456.htm file has not been altered and programs produced that use the Print1456 1456 applet landscape are not affected as the update is concerned with the redrawing of the display produced if the applet display is scrolled off the screen and then scrolled back onto the screen. This updating made on 17 October 2000.

Print1456.htm

Print1456.class

Print1456blue.htm

Print1456blue.class

Print1456darkGray.htm

Print1456darkGray.class

Print1456gray.htm

Print1456gray.class

Print1456magenta.htm

Print1456magenta.class

Print1456red.htm

Print1456red.class

Print1456yellow.htm

Print1456yellow.class

Engine1456.class

The nature of the update and the background to it being made are now described, in the hope that readers will regard the background as to why the update was made as being interesting. The Print1456 1456 applet landscape is useful for making line drawings and drawing graphs, for example in the illustrating of free to the end user distance education material. The section from the <applet all the way through to </applet> may be copied from one of the HTML files above and pasted into the HTML file of a document that it is desired to illustrate. The values of width and height being used may be reduced from those used in the original file. In this document, for example, a value of 200 is used for both width and height. The 200 means 200 pixels. Where the background of a page of text is white, a diagram drawn on a blue background with white lines can be stylishly effective. Here is an example of a diagram produced at a size of 200 pixels by 200 pixels and placed within the main body of some text. The size of 200 pixels by 200 pixels was selected in the call of the applet from within this HTML file. The triangle is drawn using 1456 object code in the HTML file of this document. The 24 point sans serif italic lettering is produced using a 1242? command within the 1456 software. Although this is a static diagram, the facility of using the mouse button press is available if a diagram that changes when the user clicks upon it is desired. This feature, until the update that is being described in this document, had an unfortunate effect in a diagram that is intended to be a static diagram if the user happens to press the mouse button upon it and then scroll the page so that the diagram goes off the visible page and then the user scrolls the page so that the diagram reappears. The applet remembered that it has an obeycode of 41 active and tried to obey 1456 object code at label 41. This, by default, is just a Halt command. So, a blank display of just the background colour was produced. One option, I thought, would be to supply a 1456 applet landscape called Static1456 or some similar name where the mouse is not active. However, this has not been done as the effect could easily be switched off by placing the code 41:1JH as the entry point 41 code. This simply caused the applet to produce a display exactly the same as if it had had an obeycode of 1 remembered. In view of the fact that this adding of 1J is so easily done and that it would have presented no great inconvenience to a 1456 programmer to do it, I did not provide a 1456 applet landscape called Static1456 as a variant of the Print1456 1456 applet landscape. In order to demonstrate the effect I have prepared a version of the Print1456 1456 applet landscape specifically for the purpose. It is called Print1456blueold and is simply a blue background version of Print1456 as it was before the update. Here I have included two separate usages of the Print1456blueold 1456 applet landscape identical except that the one on the left of the page has the 1J added and the one on the right does not have the 1J added. The purpose of the picture on the right is solely to demonstrate the effect. In normal usage the 1J would have been added. In order to view the demonstration, please click on the two diagrams of triangles that are shown on a blue field. Next scroll the document so that both pictures go off the screen. Next scroll the document so that both pictures are back on the screen.

However, a better method of resolving the problem occured to me. The problem is resolved by making the obeycode value that is held within the applet while it is idling be set to 1 rather than left at the value just used. Those readers who have been looking at the underlying Java implementation of the Print1456 1456 applet landscape might like to know that this change is implemented by adding one line of code at the end of the paint function of the Java software. Thus that part of the software that was programmed as follows has one line added.

                resultchar =
                firefly.obeySoftwareAfterSoftwareInterrupt(screen);
              } while (resultchar == '?');
          }

      }

After the addition of the one line that part of the software reads as follows.

                resultchar =
                firefly.obeySoftwareAfterSoftwareInterrupt(screen);
              } while (resultchar == '?');
          }
        obeycode = 1;
      }

In order to demonstrate the effect of the change, here is an example of an updated version of the Print1456 1456 applet landscape where the 1J is not included in the routine for the 41: entry point. The dark grey version is used for this additional demonstration so that it is clear to which diagram reference is being made. Had I wished to make the background blue I would have used the Print1456blue 1456 applet landscape.

However, a problem does arise where the picture is intended to have an effect when the mouse button is pressed whilst the mouse pointer is upon it. The Print1456red 1456 applet landscape is used for this demonstration. The Print1456blue 1456 applet landscape could have been used, yet I have used the Print1456red 1456 applet landscape so as to avoid any possibility of causing confusion as to which diagram refers to which situation. In the diagram with the red background on the left hand side of the page, where the changes of colour are simply as a secondary demonstration of using different colours for graphic effect, clicking will draw a circle centred on the clicked point. If this diagram is scrolled off the page and then rescrolled back on, then the diagram will be redrawn and the results of the clicks will not be redrawn. However, the diagram with the red background that is on the right hand side of the page has extra 1456 software added such that the positions of the centres of the circles are stored in the mi1456 array when they are entered using the mouse click. Running the 1456 software at entry point 1 will draw the basic design together with the circles whose details have been stored. Twenty circles can be stored using this particular piece of 1456 software.

The use of the plain white background Print1456 1456 applet landscape to produce an illustration has the effect that the edge of the illustration area is not apparent. This effect may be desired or undesired depending upon the required design. A possibility worthy of consideration is to use a yellow background. When a yellow background is used, dark colours may be used for the drawing and any caption. It can also be useful, when the final published applet is to have a white background, to use a yellow background during testing so as to ensure that no parts of captions are being clipped off at the edge of the applet and that there is reasonable space around captions in case the fonts in use on the viewer's computer are different to the fonts used in development. Please note that all of the graphic effects produced in this document, such as triangles, circles and a quadrilateral are all produced using 1456 software. The Print1456 1456 applet landscape and the six colour variations of it on their own simply provide a plain background field in a certain colour.

1456 object code

Copyright 2000 William Overington