2016-01-01から1年間の記事一覧

Ruby on Rails.1

最近、Ruby on Rails Tutorial という本を読みながら、Ruby on Railsの練習をやっています。(とても有名な本らしい) 開発環境はcloud9というクラウドIDE、そして作ったappがheroku でデポロイしました。https://sampleappbyhuanhuan007.herokuapp.com/ そ…

声を失う三日間

この数日間、不安を抱きながら過ごしました。何があったのかというと、自分の声がおかしくなったのです。 最初はうっかり 風邪を引きました。腹筋を付けるぐらい、咳が止まれへん。でも普段あんまり風邪が引かないので、薬を飲んだら治れるでしょうと思った…

Ruby.1

こんばんは。 今日はruby 言語について少し勉強しました。 1、まずは基礎からですね。。基本文法、型、文字列など本を読みました。そして早速ですが。。rubyでbubble sortを書いてみた。 ⬆️一応、ruby で書いてますが、、なんかまだC言語 styleですね。。 ⬇…

LongTimeNoSee!

お久しぶりです。 GWはいかがでしょうか〜 最近引き続き、ios9開発 by using Xcode7+swift2.0について勉強しています! まだまだわからないことがたくさんあります、今度はじっくり勉強しようね。 後、ruby on railsの勉強も! 頑張ります! それに卒業発表…

ペイント進捗記録20160403

1. warningを全部消しました。 2.サイズが違うiphoneに適応できるように、LayoutとConstriantを設置した。 3. 昨日のclearのところのエラーを修正した。(画像をclearする時、indexを初期化すべき)

ペイント進捗記録20160402

メモリ使いを改善しました。 Before メモリの使いは上限がない。特に解像度が改善した後、20回ぐらい描くと、メモリの使いは100M以上超えた。 After 画像のキャッシュとメモリを管理する、出来るだけ少ないメモリを使うので、いくら描くでも、メモリの使いは…

ペイント進捗記録20160331

リハーサルの準備をしました、進捗がございません。明日、引き続きメモリの改善を実装します!四月も頑張ります!

ペイント進捗記録20160330

1、現在選択しているツールを黒の領域から出させるようにした。 isSelected で現在なんのツールを選択しているのか記録し、ボタンをタップする時、ボタンの画像を切り替える。 ボタンのレーアウトなどまだ調整する必要があります。 2、Main Storyboard以外…

ペイント進捗記録20160329

prepareForSegueでRGB値と太さ値追加して、drawPreview()関数で表示する。 色と太さを再選択するときに以前の設定がプレビューできるようにしました。 メモリの使い改善はまた実装中です。

ペイント進捗記録20160328

今日は進捗ございません、明日から進めます‼︎

ペイント進捗記録20160327

外出するため、PCがそばにいないプログラムのほう進捗ございません。学校に戻ったら早く自分の考えを試してみたいです。進捗が遅くなり申し訳ございません‼︎

ペイント進捗記録20160326

メモリ使いすぎの改善は二つの方法が考えました。一つ目は、画像ではなく、CGPathを保存して、毎回再描画する。パスだけ記録すれば、メモリの使用が減少出来ると思う。でも毎回再描画するため、絵を描けば描くほど性能が悪くなるかもしれません。それに、ブ…

ペイント進捗記録20160324

今日は実験をやりましたので、アプリ開発のほうは進捗がございません。

ペイント進捗記録20160323

昨日の問題を解決しました。保存した画像を開く時、画像のサイズをboardのViewと同じように処理した。 画像の解像度高さも維持できます。 メモリ使いすぎの問題を検討中です。

ペイント進捗記録20160322

解像度の改良: UIGraphicsBeginImageContextWithOptions(self.bounds.size, false, 0.0)を使えば、線の解像度がよくなれる。 imageとして保存する時も同じく修正すれば、保存される画像の解像度が維持できる。ただし、再び画像を開く時、画像の解像度が高い…

ペイントアプリまとめレポート

1、アプリの機能 *ペイントツール:ブラシ、消しゴム、定規、ディバイダー、カラーピッカー(ブラシの太さを選択できる、カラー160種類選択できる) *操作の機能:元に戻す、やり直す、スケッチブックをクリアする、絵を保存する、既存の絵を開く、新…

ペイント進捗記録20160320

Today I completed the remaining work which is opening existing picture. If users want to open a picture they have saved, they can touch the ”open” button. then select a existing picture. Here, I opened a picture that I drawn yesterday, and…

ペイント進捗記録20160319

Today I implemented the “Save” and “Create a new drawing board” function. For example, suppose I have been draw a picture, then I touch the "Save" button, the picture I drawn will be save in the Album on iphone. Another function I Implemen…

ペイント進捗記録20160318

Today I did an improvement on the the drawing lines. Instead of only setting a middle point, I set more control points to make the lines smoother. I also Implemented the “share on the SNS” function. First touch the “share” button, and then…

ペイント進捗記録20160317

明日のゼミ発表の準備をしました、進捗ございませんでした。金曜日から続きを進めます!!

ペイント進捗記録20160316

I designed the UI of my drawing board today. There are two toolbars on the board, the one on the bottom of screen contains brush , eraser, ruler(straight line), divider(circle) and color picker. And the other one on the top contains some f…

ペイント進捗記録20160315

Today, I made some icons for the buttons by using photoshop in order to optimize the UI of the APP. I will continuously make efforts tomorrow.

ペイント進捗記録20160314

Today I implemented the color picker. fig.1 select color and width in the settings menu fig.2 various kinds of brush I will do my midterm presentation for graduation on the end of March, so I have to prepare for it from next week and maybe…

ペイント進捗記録20160313

Today I started to design the color picker as the image shows, user can selected color and width of the brush in the menu.This color picker can provide 160 kinds of colors and I think it’s enough for users. It’s easy for users to select co…

ペイント進捗記録20160312

Today I solved the problem that the drawings are not smooth. Using a array named samplePoints to hold more points, and draw curves instead of straight lines. The running result shows that the drawings look smoother and more natural. Of cou…

ペイント進捗記録20160311

Today I attended a seminar and had a meeting with my professor. So I didn’t continue my task. I think I will focus on my development on this weekends.

ペイント進捗記録20160310

What I have done today are as follows: 1.Came up with a new solution to make the drawings look smoother. Instead of drawing straight lines I will try to draw Bezier curves between each touch point. I want to create an array to hold all the…

ペイント進捗記録20160309

今日やったこと 1、[全部削除する]機能追加 難しくないですが、一旦絵を全部削除すれば、もう元に戻すとやり直す出来ないはず、ですから削除する時、redoImageとundoImage二つの配列もクレアすべき。 この点は最初気づかなかった問題が起こった。 2、太さ…

ペイント進捗記録20160308

今日は一日明日のゼミ発表の準備をしたので、開発しませんでした。明日発表が終わったら続きを進めます

ペイント進捗記録20160307

15時〜 1、今日実現の機能:元に戻る、やり直し、太さを選ぶ、透明さを選ぶ 2、線の書き方についての検討: 今のやり方は、点と点の間に直線を書く、ですので線を引く時あんまりスムーズではない。今日はブラシの太さと透明さを選べるようになったため、…