The law of self defense is the law of necessity, and the necessity relied upon to justify the [shooting, stabbing, etc.] must not have arisen out of the defendant’s own misconduct. In determining the necessity, the defendant may act upon reasonable appearances of danger, and whether the danger is reasonably apparent is always to be determined from the viewpoint of the defendant at the time he acted.