I am developing a game that allows users to try and match the sound of a car driving around a track. We want to score people based on how close their sound is to the original. The best way we can think of is to have a visual wave form for them to match and to show the waveform that they are creating. Then we overlay the two wave forms and try to calculate the area of the colour where they overlap. We are currently able to detect colours in an image but not the percentage. Does anyone know of a script that does this? Ideally we would like to do this in browser, but if it can only be done server side then we can try and work with that scenario
So I am basically trying to do a lesson for my class in STEM. This level I encountered on code.org has really made me go insane. Basically, I am making a game in the game lab. The bunny sprite on the bottom moves left and right to pick up coins, while the coins drop down onto the bunny sprite, almost like a shower. I basically need to have the score go up by a certain amount of points, have the coin sprite reset itself ( the coordinates, ) and I need an answer. If anyone has an answer, please help me! Thank you.
-Soraahh
PS. I will receive messages via email.
I'm trying to place a series of overlays onto a Google Map. I'm following along with the sample code for ground overlays, but that only allows me to dictate image placement using north/south/east/west boundaries. The works as long as my image is a rectangle and oriented along longitude and latitude lines. I'd really like to be able to accurately place an image, including custom scale and angular orientation. That doesn't seem possible with a ground overlay.
So here's a possible use case. I'm building a website to help city planners test parking availability.
The city planner uses a Google map on the analysis website to select an area of the street with a polygon select tool.
The website script tests the selected polygon area for parking availability.
When we're done with the evaluation, I'd like the site to paste random images of cars into the page so the user can better visualize what's available.
I can create a rectangular plan view of a car, but I'm unable to figure out how to rotate the image by X degrees as required. Perpendicular to North/South/East/West (NSEW) is no problem, but I'm unable to angle it.
This should work no matter how the original map is oriented. The goal is the user sees a proposed solution, complete in the current map view, and to scale.
Obviously the image would have to be perfectly scaled to the visible map, and that's fairly easy to do (a minor latitude length adjustment may be required.)
(In this image, the city planner has just selected the area of interest via polygon selection tool. The next step is to evaluate the area, and paste in some parked cars, aligned and in scale!)
All the Google mapping native overlay tools I'm looking at rely on LatLngBounds class, hence the NSEW perpendicular alignment problem. I know I can calculate the desired angle, go to a php server, rotate a .png image with transparent background, per php imagerotate, but that seems like such a hack for a geo-mapping exercise. I could also pre-rotate the cars in a .png file and save them as red_car_15degrees.png, blue_car_30degrees.png, white_pickup_45degrees.png, (three different cars x 5 degree increments from 0 to 45 degrees) but that too, just feels like a hack.
Is there anyway to create a custom map overlay at a given desired orientation angle, so I can layer in the cars to show the city planner what's available? Many thanks.
I would draw and rotate in a <canvas> and then out that on.
EDIT:
place on canvas, ctx.rotate, c.toDataUrl(), and overlay that on your map.
I'm trying to develop a very simple sketch program that can draw the dimensions of buildings. For example, if I want to draw a 24'x24' house, it would simply be a square with each side representing 24'. I've read that SVG/Javascript may be ideal, but I'm looking for some specific guidance.
Here is a link to a 30 second video showing exactly what I need: https://vid.me/96Mz
I'm able to draw those shapes by clicking in one spot and then moving the mouse to another location to draw a wall, then click again to produce a third corner, and then a final time to close the shape. I'd need the area to be calculated too.Preferably the dimensions of each side would be able to be shown as labels.
Here's an example of an image I'd like to be possible:
Click Here
Can you think of anything to help me build a simple version? Any feedback is huge, thanks a lot.
In the project I'm working on we need to show available office spaces in the building and the idea is to highlight just a portion of the floor rather than entire floor. For instance, if the space is located at the corner, so only corner will needs to be highlighted not the entire floor. The red strip is a mesh on top of each floor. I'm looking for ways to highlight just a part of it. Hitting my head against the wall to figure out how... please help! Thanks a lot
Imgur