タグ

2016年3月7日のブックマーク (4件)

  • PhotoSwipe

    What’s new in v5Code quality and rewrite in ES6The script is now distributed as an ES module and does not require a build step to use. The documentation is also updated and now includes more examples. Simpler initialization and dynamic import supportPhotoSwipe now supports dynamic import and does not block page rendering. <script type="module"> import Lightbox from './photoswipe-lightbox.esm.js';

    PhotoSwipe
    kzms2
    kzms2 2016/03/07
    素晴らしい画像向けSwipeライブラリ。addCaptionHTMLFnでCaptionにリンク追加。
  • DarkroomJS

    DarkroomJS Extensible image editing tool powered by HTML5 canvas. Introduction DarkroomJS is a JavaScript library which provides basic image editing tools in your browser, such as rotation or cropping. It is based on the awesome FabricJS library to handle images in HTML5 canvas. UPDATE: The project has been discontinued. As an alternative you should have a look at Pintura Image Editor. Pintura sup

    kzms2
    kzms2 2016/03/07
    Canvasで画像操作。回転や切り抜きなど
  • JavaScript開発に役立つ重要なランダムの数式まとめ - ICS MEDIA

    プログラムで使うことの多い「乱数」。ゲーム開発やビジュアルアート、ウェブサイトのアニメーションにおいて乱数は非常に重要で、さまざまな用途で利用されています。プログラムで一般に乱数と聞くと、すべての数値が同じ頻度(分布)で出現する「一様乱数」と呼ばれる乱数をイメージする方が多いと思います。 多くの場合はこの「一様乱数」で取得した乱数を用いれば十分でしょう。しかし、場合によっては「一様乱数」ではなく、偏りのある乱数を用いることでコンテンツの見た目や現象の「自然さ」を演出することが可能です。 実は「一様乱数」に一手間加えることで、乱数の分布の偏りを制御できます。今回は乱数を使用して好みの分布を得るためのパターンをいくつか紹介します。 乱数分布のシミュレーションデモ (HTML5製) 次のデモはリアルタイムで乱数の出現頻度を計算し、グラフに可視化するコンテンツです。画面下のプルダウンで乱数の種類を

    JavaScript開発に役立つ重要なランダムの数式まとめ - ICS MEDIA
    kzms2
    kzms2 2016/03/07
    randomについて色々。すばらC
  • Fonts, bootstrap themes, icons, ui kits & more

    Ship amazing designs faster.Get ahead in your project by using all the free & premium curated fonts, graphics, templates, mobile app designs & UI Kits we offer

    Fonts, bootstrap themes, icons, ui kits & more
    kzms2
    kzms2 2016/03/07
    多数のUIキットや素材のShowcaseサイト。