Inspiring Inspiration #16
8 years ago
A collection of cool video, motion graphics and interface design.
A collection of cool video, motion graphics and interface design.
Building on the hexagonal grid from earlier, I have added a little JavaScript and have created an effect similar to the Apple Watch home screen UI.
Below is a video of it in action, I am using IE11 (metro version) on a Surface Pro 2 which I found to be the most performant for this effect. Chrome was janky as hell, and Safari on the iPad doesn’t like to do things while scrolling.
READ MORE
Following on from the last post I decided to play a bit more with the hexagonal grid and created a diamond grid. It works similar to the last grid except it uses squares rotated 45 degrees, so it is basically a regular grid tipped on its side with even-odd number alternating rows.
Here is a live demo of the grid:
Most grids are square packed – that is each cell is stacked like a block which is great, but if you are after something slightly different maybe you should try a hexagonally packed grid. I will show you how to create a hexagonally packed grid using only CSS. But first, here is the difference between a square and a hexagonal packed grid:
READ MOREA collection of cool video, motion graphics and interface design.
Since Chrome 25 we have had access to the new Web Speech API which allows us to create web apps that can utilse voice to text or voice control with a microphone. I have been wanting to experiment with this for quite a while so I built simple example to using voice commands to control an e-learning module made with my e-learning framework. I recorded a video below demonstrating navigation through voice commands. After the video I will show show you how easy it is to set up this basic control.
The following link provides a tutorial on implementing a speech to text example: http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API
To use speech recognition for voice commands, this is how I implemented it:
1. Create a new speech recognition object
var recognition = new webkitSpeechRecognition();
2. Make the object continuously check the microphone
recognition.continuous = true;
3. Set the language to use. By default it will use the document’s language
recognition.lang = "en-AU";
4. Start the speech recognition
recognition.start();
5. Get results on the ‘onresult’ event
recognition.onresult = function (e) {
// loop through the results
for (var i = e.resultIndex; i < e.results.length; ++i) {
// only get the final results
if (e.results[i].isFinal) {
// trim any whitespace from result and pass to our command handler
// note: I am using jQuery here to trim the string because my e-learning demo already had jQuery included
runCommand($.trim((e.results[i][0].transcript).toLowerCase()));
}
}
};
6. Set up a function to handle the commands
function runCommand(command){
switch (command) {
case "alert" : alert("Hello"); break;
case "prompt" : prompt("Enter some text"); break;
case "confirm" : confirm("Confirm?"); break;
}
}
The most common technique for creating a colour picker (at least in the ActionScript world) seems to use a colour wheel bitmap and then getting the colour of the pixel that was clicked on. I found that this was not a very accurate way to go about it and decided to build a colour picker that gave colours based on calculations in a HSV cube – Hue on the Z axis, Saturation on X axis, and Value on the Y axis.
Of course a 3D cube colour picker would be pretty hard to use, so what we end up with is a vertical hue slider, then an area that determines the saturation and value like so:
READ MOREA collection of cool video, motion graphics and interface design, mostly if not all from Vimeo…
A collection of cool video, motion graphics and interface design, mostly if not all from Vimeo…
A collection of cool video, motion graphics and interface design, mostly if not all from Vimeo…