Numbers Guessing Game
Your Numbers Game
Get
clueYour
answerYour
ScoreClue? Score 0/0
-
Recent Posts
- PHP Exif Quiz Geographicals Tutorial
- PHP Exif Quiz Tutorial
- PHP Exif Retention off iPhone Images Tutorial
- List to Grid Layout CSS Media Query Tutorial
- List to Grid Layout Primer Tutorial
- Out and About WordPress Blog Content Tweaks Just with iPhone Tutorial
- Command Line History By Date Tutorial
- Overseas Travel Global Roaming Mobile Primer Tutorial
Categories
- Ajax
- Android
- Animation
- Anything You Like
- Code::Blocks
- Coding
- Colour Matching
- Data Integration
- Database
- Delphi
- Eclipse
- eLearning
- ESL
- Event-Driven Programming
- Games
- GIMP
- GUI
- Hardware
- Installers
- iOS
- Land Surveying
- Moodle
- Music Poll
- NetBeans
- Networking
- News
- Not Categorised
- OOP
- Operating System
- Photography
- Projects
- Signage Poll
- Software
- SpectroPhotometer
- Tiki Wiki
- Trips
- Tutorials
- Uncategorized
- Visual Studio
- Xcode
Meta
Tags
Ajax animation background button canvas command line CSS Did you know DOM dropdown email emoji event form game Google Google chart hashtag HTML IFRAME image iOS Javascript MAMP media mobile navigation onclick overlay PHP popup programming select share sharing SMS SVG table text textarea tutorial url video web browser webpageYour Background Image
OnTopList
Tag Archives: geometry
PHP/Javascript SVG YUI Geometry Tracing Tutorial
We came across another great “Geometry Tracing” functionality possibility the other day. It revolved around using the excellent YUI (by Yahoo) library of Javascript functionality, and we wanted to integrate it into yesterday’s PHP/Javascript SVG Geometry Tracing Tutorial start to our software integration journey of late. Before going on, we’d like to thank Graphics: Path Drawing Tool – YUI Library for the basis in code of today’s supervised additions in HTML and Javascript and CSS web application components. To involve Javascript libraries like YUI is more than a Javascript dynamic HTML “workings” experience. Built in, if you choose to access it … all free, thanks … are a lot of aesthetically pleasing stylesheet ideas, and this shows with our “better than usual” look to our supervised YUI web application components. What we have now is as below, with the bold section new for today’s work. the supervising PHP and Javascript web application‘s SVG_Primer.php changed in this way, today, building on yesterday’s PHP/Javascript SVG Geometry Tracing Tutorial … supervising … the supervised HTML/Javascript Canvas Geometry Tracing Game Tutorial‘s HTML and Javascript geometry_tracing.html changed in this way to interface (and integrate) with the supervisor above, via an HTML iframe element arrangement, and the HTML(5) canvas element’s drawImage() method … as one choice, the second choice being … the supervised HTML and Javascript yui_path_tool.html to interface (and integrate) with the supervisor above, via an HTML iframe element arrangement … as well as being a separate web application as per this live run link We like YUI’s pencil as the draggable cursor that the user can use to trace around their SVG … again via … ?area=[parent determined area of SVG element] &svg=[data URI of SVG xml] … GET call of the YUI magic! Yesterday’s work, as well as not working for Firefox (web browser), didn’t work for Internet Explorer nor Microsoft Edge (so I found out today), so, in order to solve the cross-browser issues once and for all, today, (after we realized that bullets don’t taste very good) we use the “data:image/svg+xml;base64,” prefixed Data URI for SVGs across the board … ditching the HTML(5) canvas element’s drawImage() method … and, instead, instituting a background image (to the canvas (is elem below, and ourtowhat equates to the base64 headed Data URI for SVG content)) approach as for … elem.style.backgroundRepeat=’no-repeat’; elem.style.backgroundPosition=’20px 20px’; elem.style.backgroundImage=’url(‘ + ourtowhat + ‘)’; … and this started working for Firefox, … Continue reading
Posted in eLearning, Event-Driven Programming, Games, Tutorials
Tagged algorithm, area, array, background, background image, base64, canvas, cross-browser, cross-browser issues, CSS, data uri, DOM, Firefox, game, games, geometry, HTML, HTML5, IFRAME, integration, Javascript, mathematics, PHP, push, software integration, SVG, tracing, utf-8, XML, YUI
Leave a comment
PHP/Javascript SVG Geometry Tracing Tutorial
The tutorial today is about software (web application) integration that is value adding but in an optional way. The software integration is between … the supervising PHP/Javascript SVG Colour Picker Tutorial‘s PHP and Javascript web application‘s SVG_Primer.php changed in this way, today … supervising … the supervised HTML/Javascript Canvas Geometry Tracing Game Tutorial‘s HTML and Javascript geometry_tracing.html changed in this way to interface (and integrate) with the supervisor above, via an HTML iframe element arrangement, and the HTML(5) canvas element’s drawImage() method We integrate these two in quite a neat way, allowing for the extension of the supervised’s static arrays which go … var imageo=[]; var ourareawas=[36213.0, 25382.0, 19608.0, 39366.5, 24471.5, 43679.5, 37633.5, 45130.5, 40987.5, 51842.5]; var image_array=[“one_sided.jpg”, “two_sided.jpg”, “three_sided.jpg”, “four_sided.jpg”, “five_sided.jpg”, “six_sided.jpg”, “seven_sided.jpg”, “eight_sided.jpg”, “nine_sided.jpg”, “ten_sided.jpg”]; … extended by Javascript’s [array].push method (often good for those dynamic Javascript DOM driven extensions of functionality) … to establish the (communication protocol) ideas for the “Geometry” the user can be “Tracing” around, by allowing new GET parameters … ?area=[parent determined area of SVG element] &svg=[data URI of SVG xml] … the latter of which we’re using for the first time in this project, and want to thank the Data URI’s for SVG paragraph for great ideas here. As you do software integration, sometimes you think of it as a slog, and yes, it usually is a bit of a slog. When the slog is more a neat data efficient form of integration, that Data URIs for SVG seems to us to be, then it all seems worthwhile. However, in this early days integration, we still have to iron out some cross-browser issue aspects that don’t work in Firefox, for us not working with “data:image/svg+xml;base64,” nor “data:image/svg+xml;utf8,” prefixed Data URI for SVG forms. Possibly it’s to do with using it via GET arguments. Time will tell, we hope. And so you can see us integrating the display of an SVG piece of geometry to offering the user the (optional) chance to play a game seeing how accurately they can trace around that shape and match the supervisor calculated mathematics (Area of a Polygon) algorithm (we use a lot in various web applications) generated area value. Value adding, and entertainment adding, we think … we hope. Previous relevant PHP/Javascript SVG Colour Picker Tutorial is shown below. Today’s posting hooks up two HTML5 concepts, as described below … The HTML5 specification allows for the display … Continue reading
Posted in eLearning, Event-Driven Programming, Games, Tutorials
Tagged algorithm, area, array, canvas, cross-browser, cross-browser issues, CSS, data uri, DOM, Firefox, game, games, geometry, HTML, HTML5, IFRAME, integration, Javascript, mathematics, PHP, push, software integration, SVG, tracing, XML
Leave a comment
SketchUp Primer Tutorial
Today we’re following up on a tip and trying out a 3D Modelling suite of software called SketchUp on a MacBook Pro using Mac OS X. SketchUp can also work with the Windows operating system. Reading “PC & Tech Authority” June, 2017 (“the tip”) we’re looking forward to the idea of a 2D model being able to become 3D by “pulling up” the walls … as an upwards swipe of the mouse with the Pull tool The other great thing about SketchUp is that it is free … yayyyyyy! And so, what were the steps getting today’s tutorial picture to happen? installed SketchUp from this link because of my lack of experience piecing together 3D models, followed this great advice at Creating your first 3D model in SketchUp (paragraph) starting out with SketchUp Select the person, context-click the selection, and select Erase in the context menu that appears. In the Getting Started toolbar, select the Rectangle tool (). On the ground plane, in the space between the red and green axis, click the Rectangle tool cursor (). Then move your cursor to the right and click again. A rectangle appears on the ground, as shown here. A rectangle drawn on the groundplane On the Getting Started toolbar, select the Push/Pull tool (), and place the Push/Pull cursor over the rectangle you just created, as shown in the following figure. Click and drag your rectangle up into a 3D shape. Keep an eye on the Measurements box and release the cursor when your shape is about 5 feet tall. experimented with Orbit view experimented with Move tool experimented more with the addictive Pull tool after more 2D Rectangle tool usages experimented with 3D Warehouse … some of the prebuilt models there are amazing! experimented with Paint Bucket experimented with the Camera menu options Parallel Projection Perspective Two-Point Perspective tried File -> Save As … SketchUp model (FirstTry.skp) Perhaps SketchUp is a good option for 3D Modelling work you are undertaking? We definitely recommend it on a first look. That look, for you, ahead of time, could be today’s “stream of consciousness” PDF presentation. If this was interesting you may be interested in this too.


Thanks. Since then, a Shower Songs project at https://www.rjmprogramming.com.au/HTMLCSS/shower_songs.html is an improvement regarding "Radio Play" on mobile platforms.